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:25:12 +0000 (11:25 -0400)
commit464d59a5bb5811f7671e2bd37f41d610606b829d
treea5483ba43dc4d4de5330cfa7407bd5ccb2bbbd4b
parenta66234bc86a959e628e2010687c6fdf0fdbfdac3
RT2676: Reject RSA eponent if even or 1

Also, re-organize RSA check to use goto err.
Add a test case.
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>
crypto/rsa/rsa_chk.c
crypto/rsa/rsa_pmeth.c
test/recipes/15-test_rsa.t