From d0e6c7e134395a9ca1deb10955231b8da8b903a4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 25 Jan 2011 10:52:36 -0500 Subject: [PATCH] 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 --- src/pkg/crypto/rsa/pkcs1v15.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.0