Remove DSA digest length checks when no digest is passed
authorBryan Donlan <bdonlan@amazon.com>
Tue, 17 Jul 2018 20:38:17 +0000 (13:38 -0700)
committerAndy Polyakov <appro@openssl.org>
Sun, 29 Jul 2018 19:28:48 +0000 (21:28 +0200)
commit34515e8f88e57c13cdf2b1d4ec094ffd4e9f8d94
treebf44d077da205cbf41e4c63e036e95dbee7f4e24
parent3c0addb71c66adf729f48050c3a75f68c44b23b6
Remove DSA digest length checks when no digest is passed

FIPS 186-4 does not specify a hard requirement on DSA digest lengths,
and in any case the current check rejects the FIPS recommended digest
lengths for key sizes != 1024 bits.

Fixes: #6748

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6749)

(cherry picked from commit 665d9d1c0655d6f709c99e1211c1e11fcebfeecd)
crypto/dsa/dsa_pmeth.c