]> git.ipfire.org Git - thirdparty/openssl.git/commit
Signature algos: allow having identical digest in params
authorTomas Mraz <tomas@openssl.org>
Wed, 14 Jul 2021 13:41:22 +0000 (15:41 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 16 Jul 2021 09:23:18 +0000 (11:23 +0200)
commit033e987c03e025fa15eeae036578384e65f49af0
treeada06307550f3ba06f5a39e807342b0a2e36472d
parent59f66d8cf98a2c11404826bfecd7d6f210ddc048
Signature algos: allow having identical digest in params

The flag_allow_md prevents setting a digest in params however
this is unnecessarily strict. If the digest is the same as the
one already set, we do not return an error.

Fixes #16071

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16076)
providers/implementations/signature/dsa_sig.c
providers/implementations/signature/ecdsa_sig.c
providers/implementations/signature/rsa_sig.c