]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: left-pad PKCS#1 v1.5 outputs.
authorAdam Langley <agl@golang.org>
Wed, 11 Jul 2012 16:47:12 +0000 (12:47 -0400)
committerAdam Langley <agl@golang.org>
Wed, 11 Jul 2012 16:47:12 +0000 (12:47 -0400)
commit93ea79ee7ed859287e6adc51ab04028e972403e1
treeced91da2902569c77d57cdcecbc36048c37a8aec
parent82cbcb0dd5437db1fd2f51d1ff81a38670f7a684
crypto/rsa: left-pad PKCS#1 v1.5 outputs.

OpenSSL requires that RSA signatures be exactly the same byte-length
as the modulus. Currently it'll reject ~1/256 of our signatures: those
that end up a byte shorter.

Fixes #3796.

R=golang-dev, edsrzf, r
CC=golang-dev
https://golang.org/cl/6352093
src/pkg/crypto/rsa/pkcs1v15.go