]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.boringcrypto] crypto/internal/boring: handle RSA verification of short signatures
authorRuss Cox <rsc@golang.org>
Thu, 7 Sep 2017 03:31:41 +0000 (23:31 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 18 Sep 2017 00:07:51 +0000 (00:07 +0000)
commit07f6ce9d391df3b173772d4b12eff2d5c98bdd9c
tree08145dc1c945b442cde215c04b7b07dd5781da3e
parente8eec3fbdbfae1723c8302d23514faeb833ea8f4
[dev.boringcrypto] crypto/internal/boring: handle RSA verification of short signatures

The standard Go crypto/rsa allows signatures to be shorter
than the RSA modulus and assumes leading zeros.
BoringCrypto does not, so supply the leading zeros explicitly.

This fixes the golang.org/x/crypto/openpgp tests.

Change-Id: Ic8b18d6beb0e02992a0474f5fdb2b73ccf7098cf
Reviewed-on: https://go-review.googlesource.com/62170
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/internal/boring/rsa.go
src/crypto/rsa/boring_test.go