Fix FFC mdprop setting bugs.
authorslontis <shane.lontis@oracle.com>
Mon, 27 Feb 2023 06:35:41 +0000 (16:35 +1000)
committerPauli <pauli@openssl.org>
Tue, 28 Feb 2023 22:36:49 +0000 (09:36 +1100)
commit3307338e26862070eaacad6ec7537a63a63b8a90
treeec6925b678da022afd52227a9df98a9e6b00f5c0
parent5f820bd7535b871fdfdc0303c3af23ba4be901f0
Fix FFC mdprop setting bugs.

Coverage testing showed that ossl_ffc_params_fromdata() was not setting
OSSL_PKEY_PARAM_FFC_DIGEST_PROPS.
Adding a negative test also showed that ossl_ffc_params_copy() did not
do a shallow copy of the digest or digest property.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20385)
crypto/ffc/ffc_backend.c
crypto/ffc/ffc_params.c
test/evp_extra_test2.c