From: David Anderson Date: Tue, 25 Jan 2011 15:52:36 +0000 (-0500) Subject: crypto/rsa: correct docstring for SignPKCS1v15. X-Git-Tag: weekly.2011-02-01~87 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d0e6c7e134395a9ca1deb10955231b8da8b903a4;p=gostls13.git crypto/rsa: correct docstring for SignPKCS1v15. 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 --- diff --git a/src/pkg/crypto/rsa/pkcs1v15.go b/src/pkg/crypto/rsa/pkcs1v15.go index 7140462509..e4fc7d14a6 100644 --- a/src/pkg/crypto/rsa/pkcs1v15.go +++ b/src/pkg/crypto/rsa/pkcs1v15.go @@ -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) {