-
Adam Langley authored
Change 7c7126cf removed the primality checking in Validate to save CPU time. That check happened to be filtering out private keys with primes that were zero or one. Without that filtering, such primes cause a panic when trying to use such a private key. This change specifically checks for and rejects primes ≤ 1 in Validate. Fixes #11233. Change-Id: Ie6537edb8250c07a45aaf50dab43227002ee7386 Reviewed-on: https://go-review.googlesource.com/11611Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
2814906d
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
testdata | ||
pkcs1v15.go | ||
pkcs1v15_test.go | ||
pss.go | ||
pss_test.go | ||
rsa.go | ||
rsa_test.go |