]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: drop the primality check in crypto/rsa.Validate.
authorAdam Langley <agl@golang.org>
Mon, 23 Feb 2015 21:28:57 +0000 (13:28 -0800)
committerAdam Langley <agl@golang.org>
Tue, 24 Feb 2015 00:46:19 +0000 (00:46 +0000)
commit7c7126cfeb82894229b9c3d5109e4b04e6cfde0c
tree99772119eabeff63ddfd26b9cd18956a02174638
parentec92af650c502abcb61508db6e218bda04b778ad
crypto/rsa: drop the primality check in crypto/rsa.Validate.

This check is expensive and adversely impacts startup times for some
servers with several, large RSA keys.

It was nice to have, but it's not really going to stop a targetted
attack and was never designed to – hopefully people's private keys
aren't attacker controlled!

Overall I think the feeling is that people would rather have the CPU
time back.

Fixes #6626.

Change-Id: I0143a58c9f22381116d4ca2a3bbba0d28575f3e5
Reviewed-on: https://go-review.googlesource.com/5641
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
src/crypto/rsa/rsa.go