]> Cypherpunks repositories - gostls13.git/commit
crypto/dsa: eliminate invalid PublicKey early
authorRobert Griesemer <gri@golang.org>
Tue, 5 Apr 2016 16:44:00 +0000 (09:44 -0700)
committerAndrew Gerrand <adg@golang.org>
Fri, 8 Apr 2016 05:11:39 +0000 (05:11 +0000)
commit2cfbb875208f4acecfb0b72de5aebe37e8d03a35
tree1935fbbf1f35d78156a8bf7e7e71209150de885b
parent92faba5418973d6b21a8b34ad85bb17dbb27df37
crypto/dsa: eliminate invalid PublicKey early

For PublicKey.P == 0, Verify will fail. Don't even try.

Change-Id: I1009f2b3dead8d0041626c946633acb10086d8c8
Reviewed-on: https://go-review.googlesource.com/21533
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/21637
src/crypto/dsa/dsa.go