RT2676: Reject RSA eponent if even or 1
authorRich Salz <rsalz@openssl.org>
Mon, 22 Aug 2016 15:25:12 +0000 (11:25 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 22 Aug 2016 15:52:17 +0000 (11:52 -0400)
commit561530da966ac63a73a35e3b856a56e4fc3fe849
treebc3435044faa803be4258cd1ce6e35ea86ebd866
parent51690fb8881955a4ff3f4648a06f1be3f0945d7b
RT2676: Reject RSA eponent if even or 1

Also, re-organize RSA check to use goto err.
Try all checks, not just stopping at first (via Richard Levitte)

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 464d59a5bb5811f7671e2bd37f41d610606b829d)
crypto/rsa/rsa_chk.c
crypto/rsa/rsa_pmeth.c