]> Cypherpunks repositories - gostls13.git/commitdiff
comment typo in crypto/rsa/rsa.go
authorAndrew Gerrand <adg@golang.org>
Mon, 29 Mar 2010 02:13:12 +0000 (13:13 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 29 Mar 2010 02:13:12 +0000 (13:13 +1100)
R=rsc
CC=golang-dev
https://golang.org/cl/823041

src/pkg/crypto/rsa/rsa.go

index 6352316290444ced909c504217c836f6450efa15..941b061b5f5438e34b294b4bc01eb8f47a8ddbeb 100644 (file)
@@ -400,7 +400,7 @@ func DecryptOAEP(hash hash.Hash, rand io.Reader, priv *PrivateKey, ciphertext []
 
        lHash2 := db[0:hash.Size()]
 
-       // We have to validate the plaintext in contanst time in order to avoid
+       // We have to validate the plaintext in constant time in order to avoid
        // attacks like: J. Manger. A Chosen Ciphertext Attack on RSA Optimal
        // Asymmetric Encryption Padding (OAEP) as Standardized in PKCS #1
        // v2.0. In J. Kilian, editor, Advances in Cryptology.