Ignore OSSL_MAC_PARAM_DIGEST_NOINIT/OSSL_MAC_PARAM_DIGEST_ONESHOT
authorNeil Horman <nhorman@openssl.org>
Thu, 14 Dec 2023 17:15:21 +0000 (12:15 -0500)
committerNeil Horman <nhorman@openssl.org>
Tue, 26 Dec 2023 15:36:00 +0000 (10:36 -0500)
commit62457fd9415d707baf76f219bbb9a29106ba092b
treed135738617dbb74606389abd273db03f63c8714c
parentd6e4056805f54bb1a0ef41fa3a6a35b70c94edba
Ignore OSSL_MAC_PARAM_DIGEST_NOINIT/OSSL_MAC_PARAM_DIGEST_ONESHOT

The hmac flags OSSL_MAC_PARAM_DIGEST_NOINIT and
OSSL_MAC_PARAM_DIGEST_ONESHOT dont add any real value to the provider,
and the former causes a segfault when the provider attempts to call
EVP_MAC_init on an EVP_MAC object that has been instructed not to be
initalized (as the update function will not have been set in the MAC
object, which is unilaterally called from EVP_MAC_init

Remove the tests for the above flags, and document them as being
deprecated and ignored.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/23054)
doc/man3/EVP_MAC.pod
doc/man7/EVP_MAC-HMAC.pod
providers/implementations/macs/hmac_prov.c