diff options
author | Richard Levitte <levitte@openssl.org> | 2018-10-25 00:20:48 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-10-30 08:09:07 +0100 |
commit | 14f61f81f22db55f0ea79105a493398c1c2e04b7 (patch) | |
tree | 9b1baeb6e86f3d682c1b777307e22d96b9907df9 /crypto/evp/pkey_mac.c | |
parent | c89d9cdab1727553e3cfa964e9f082cbc5a194c2 (diff) | |
download | openssl-new-14f61f81f22db55f0ea79105a493398c1c2e04b7.tar.gz |
EVP_MAC: Integrate SipHash EVP_PKEY_METHOD into generic MAC EVP_PKEY_METHOD
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7494)
Diffstat (limited to 'crypto/evp/pkey_mac.c')
-rw-r--r-- | crypto/evp/pkey_mac.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/crypto/evp/pkey_mac.c b/crypto/evp/pkey_mac.c index 9f3817c98d..d8c0e897ed 100644 --- a/crypto/evp/pkey_mac.c +++ b/crypto/evp/pkey_mac.c @@ -392,3 +392,36 @@ const EVP_PKEY_METHOD hmac_pkey_meth = { pkey_mac_ctrl, pkey_mac_ctrl_str }; + +const EVP_PKEY_METHOD siphash_pkey_meth = { + EVP_PKEY_SIPHASH, + EVP_PKEY_FLAG_SIGCTX_CUSTOM, + pkey_mac_init, + pkey_mac_copy, + pkey_mac_cleanup, + + 0, 0, + + 0, + pkey_mac_keygen, + + 0, 0, + + 0, 0, + + 0, 0, + + pkey_mac_signctx_init, + pkey_mac_signctx, + + 0, 0, + + 0, 0, + + 0, 0, + + 0, 0, + + pkey_mac_ctrl, + pkey_mac_ctrl_str +}; |