summaryrefslogtreecommitdiff
path: root/crypto/evp/pkey_mac.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-10-25 00:20:48 +0200
committerRichard Levitte <levitte@openssl.org>2018-10-30 08:09:07 +0100
commit14f61f81f22db55f0ea79105a493398c1c2e04b7 (patch)
tree9b1baeb6e86f3d682c1b777307e22d96b9907df9 /crypto/evp/pkey_mac.c
parentc89d9cdab1727553e3cfa964e9f082cbc5a194c2 (diff)
downloadopenssl-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.c33
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
+};