]> git.ipfire.org Git - thirdparty/openssl.git/commit
PROV: Fix the DSA SIGNATURE implementation for better digests handling
authorRichard Levitte <levitte@openssl.org>
Sun, 2 Feb 2020 12:09:23 +0000 (13:09 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 4 Feb 2020 18:32:37 +0000 (19:32 +0100)
commit8bee651213c4755761ed5dd32d416d782cc5fc3c
tree50ccc48f627e761bc1099a4602017d1c8b4bfd12
parent31a796d1cc884c727a226d3dfba6a1ad7a50b865
PROV: Fix the DSA SIGNATURE implementation for better digests handling

Refactor the DSA SIGNATURE digest setup to be uniform, and to happen
in two places:

1. when given through the digestsign and digestverify inits
2. when given through the set_ctx_params function.

When setting up the digest, we also check that the digest is one of
the officially accepted for DSA.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10947)
include/openssl/core_names.h
providers/implementations/signature/dsa.c