mac: add some consistency to setting the XXX_final output length.
authorPauli <paul.dale@oracle.com>
Wed, 5 Aug 2020 05:26:48 +0000 (15:26 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 6 Aug 2020 22:07:07 +0000 (08:07 +1000)
commit5f6a0b2ff055cf3ad09a1d49a4b95b13e1106b35
treedcf50d5c3e37b6a2ca3a18dac9e44bab58a910ed
parent992492f5e82e0cf9b24acc14ea90ce8afd4c447a
mac: add some consistency to setting the XXX_final output length.

The various MACs were all over the place with respects to what they did with
the output length in the final call.  Now they all unconditionally set the
output length and the EVP layer handles the possibility of a NULL pointer.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12582)
crypto/evp/mac_lib.c
providers/implementations/macs/blake2_mac_impl.c
providers/implementations/macs/hmac_prov.c
providers/implementations/macs/kmac_prov.c
providers/implementations/macs/poly1305_prov.c