Add generic EVP_PKEY_METHOD for EVP_MACs
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Oct 2018 16:35:32 +0000 (18:35 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 29 Oct 2018 12:35:19 +0000 (13:35 +0100)
commit5e55159b3adbb30482992e8fa8621e47d331d012
tree5000f21a6deb8c79b270a3430dd064509321d4ce
parent0145dd324e8fcfd2c0dfe296c12586101f0cf3b9
Add generic EVP_PKEY_METHOD for EVP_MACs

The MAC EVP_PKEY implementations are currently implemented for each
MAC.  However, with the EVP_MAC API, only one such implementation is
needed.

This implementation takes into account the differences between HMAC
and CMAC implementations, and observes that all other current MAC
implementations seem to follow the HMAC model.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7393)
crypto/err/openssl.txt
crypto/evp/build.info
crypto/evp/evp_err.c
crypto/evp/pkey_mac.c [new file with mode: 0644]
include/openssl/evp.h
include/openssl/evperr.h