rsa_padding_add_PKCS1_OAEP_mgf1_with_libctx(): fix check of |md|
authorRichard Levitte <levitte@openssl.org>
Tue, 19 May 2020 10:52:07 +0000 (12:52 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 20 May 2020 19:10:10 +0000 (21:10 +0200)
commite637d47c9122d74d4f3a40a8cbe867de29468ba3
tree45ceff21728a47ba3361250e0a043edd8bd81d61
parenta30027b680c4ccf69f0600b3a5406821b2d7fe0b
rsa_padding_add_PKCS1_OAEP_mgf1_with_libctx(): fix check of |md|

In the FIPS module, the code as written generate an unconditional
error.

Fixes #11865

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11869)
crypto/rsa/rsa_oaep.c