[openssl/openssl] 62457f: Ignore OSSL_MAC_PARAM_DIGEST_NOINIT/OSSL_MAC_PARAM...

Neil Horman noreply at github.com
Tue Dec 26 22:50:25 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 62457fd9415d707baf76f219bbb9a29106ba092b
      https://github.com/openssl/openssl/commit/62457fd9415d707baf76f219bbb9a29106ba092b
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2023-12-26 (Tue, 26 Dec 2023)

  Changed paths:
    M doc/man3/EVP_MAC.pod
    M doc/man7/EVP_MAC-HMAC.pod
    M providers/implementations/macs/hmac_prov.c

  Log Message:
  -----------
  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 at openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
(Merged from https://github.com/openssl/openssl/pull/23054)




More information about the openssl-commits mailing list