set MGF1 digest correctly
authorJames Muir <muir.james.a@gmail.com>
Tue, 4 Oct 2022 14:48:43 +0000 (10:48 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 7 Oct 2022 17:54:30 +0000 (19:54 +0200)
commit4c172a2da4c88f52d67113da2374e61812d43be5
tree382ef4b23f487e945f46bd8b07baaef615bb82d7
parentc95e2030c34646176b4843b5f0f48720d896f427
set MGF1 digest correctly

Fixes #19290

update rsa_set_ctx_params() so that the digest function used in the
MGF1 construction is set correctly.  Add a test for this to
evp_extra_test.c based on the code scaro-axway provided in #19290.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19342)

(cherry picked from commit e5a7536eaeaacd18d1aea59edeb295fb4eb2dfca)
providers/implementations/asymciphers/rsa_enc.c
test/evp_extra_test.c