We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9558ba2 commit c009433Copy full SHA for c009433
src/crypto/rsa/pss.go
@@ -36,7 +36,7 @@ func emsaPSSEncode(mHash []byte, emBits int, salt []byte, hash hash.Hash) ([]byt
36
// 3. If emLen < hLen + sLen + 2, output "encoding error" and stop.
37
38
if emLen < hLen+sLen+2 {
39
- return nil, errors.New("crypto/rsa: encoding error")
+ return nil, errors.New("crypto/rsa: key size too small for PSS signature")
40
}
41
42
em := make([]byte, emLen)
0 commit comments