1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:57:56 -07:00

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
This commit is contained in:
David Anderson 2011-01-25 10:52:36 -05:00 committed by Russ Cox
parent 507a753c4b
commit d0e6c7e134

View 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) {