Get rid of the diversity of names for MAC parameters
authorRichard Levitte <levitte@openssl.org>
Thu, 22 Aug 2019 10:50:00 +0000 (12:50 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 24 Aug 2019 11:01:15 +0000 (13:01 +0200)
commit703170d4b9da1b3adc0e4d87719a5156080b2dca
tree5223ce61f34a098ed497c54ac271ee26a3d30f15
parent9f57e2184de330e83d0636586e88a8524c513b8e
Get rid of the diversity of names for MAC parameters

The EVP_PKEY MAC implementations had a diversity of controls that were
really the same thing.  We did reproduce that for the provider based
MACs, but are changing our minds on this.  Instead of that, we now use
one parameter name for passing the name of the underlying ciphers or
digests to a MAC implementation, "cipher" and "digest", and one
parameter name for passing the output size of the MAC, "size".

Then we leave it to the EVP_PKEY->EVP_MAC bridge to translate "md"
to "digest", and "digestsize" to "size".

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9667)
18 files changed:
crypto/crmf/crmf_pbm.c
crypto/evp/mac_lib.c
crypto/evp/p_lib.c
crypto/evp/pkey_mac.c
crypto/kdf/sskdf.c
crypto/kdf/tls1_prf.c
crypto/modes/siv128.c
doc/man7/provider-mac.pod
include/openssl/core_names.h
providers/common/macs/cmac_prov.c
providers/common/macs/gmac_prov.c
providers/common/macs/hmac_prov.c
providers/common/macs/kmac_prov.c
providers/default/macs/blake2_mac_impl.c
providers/default/macs/poly1305_prov.c
providers/default/macs/siphash_prov.c
test/evp_test.c
test/recipes/30-test_evp_data/evpmac.txt