]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/rsa: correct docstring for SignPKCS1v15.
authorDavid Anderson <danderson@google.com>
Tue, 25 Jan 2011 15:52:36 +0000 (10:52 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 25 Jan 2011 15:52:36 +0000 (10:52 -0500)
The docstring claims the function uses PSS message encoding,
when the function actually implements PKCS1-v1_5 encoding.

R=agl1, rsc
CC=danderson, golang-dev
https://golang.org/cl/4097042

src/pkg/crypto/rsa/pkcs1v15.go

index 7140462509cd8f61b3fd067f517375d143bb1556..e4fc7d14a6b722c5c7939874f993056cf525d4ea 100644 (file)
@@ -175,7 +175,7 @@ var hashPrefixes = [][]byte{
        {}, // A special TLS case which doesn't use an ASN1 prefix.
 }
 
-// SignPKCS1v15 calcuates the signature of hashed using RSASSA-PSS-SIGN from RSA PKCS#1 v1.5.
+// SignPKCS1v15 calculates the signature of hashed using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5.
 // Note that hashed must be the result of hashing the input message using the
 // given hash function.
 func SignPKCS1v15(rand io.Reader, priv *PrivateKey, hash PKCS1v15Hash, hashed []byte) (s []byte, err os.Error) {