Improve RSA test coverage.
authorDavid Benjamin <davidben@google.com>
Mon, 7 Nov 2016 00:12:47 +0000 (19:12 -0500)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 7 Nov 2016 20:07:06 +0000 (21:07 +0100)
commitb9ddc5fd0ccb6ec92b5178db1f169d431f2a3ff3
treed0e64433f92fe9b428b72d54fc2de1ac0b82dfb6
parent439530bc571a5221ba0df983a245b525f46c9898
Improve RSA test coverage.

MD5/SHA1 and MDC-2 have special-case logic beyond the generic DigestInfo
wrapping. Test that each of these works, including hash and length
mismatches (both input and signature). Also add VerifyRecover tests. It
appears 5824cc298174d462c827cd090675e30fc03f0caf added support for
VerifyRecover, but forgot to add the test data.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #1474
(cherry picked from commit f320555735af7aa52172a2b8c56181445e8490dd)
test/evptests.txt