aboutsummaryrefslogtreecommitdiff
path: root/crypto/hmacpriv.h
diff options
context:
space:
mode:
authorLongpeng(Mike) <longpeng2@huawei.com>2017-07-14 14:04:08 -0400
committerDaniel P. Berrange <berrange@redhat.com>2017-07-19 10:11:05 +0100
commit42e7e15f99e1c78b2d3e7e7a1cb923e472ef8e9f (patch)
tree6d4342f29f741985741a1932cd0e6c2d5819ae88 /crypto/hmacpriv.h
parent9a0597734876682480851376a98202a84073b715 (diff)
downloadqemu-42e7e15f99e1c78b2d3e7e7a1cb923e472ef8e9f.zip
qemu-42e7e15f99e1c78b2d3e7e7a1cb923e472ef8e9f.tar.gz
qemu-42e7e15f99e1c78b2d3e7e7a1cb923e472ef8e9f.tar.bz2
crypto: hmac: add af_alg-backend hmac support
Adds afalg-backend hmac support: introduces some private APIs firstly, and then intergrates them into qcrypto_hmac_afalg_driver. Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto/hmacpriv.h')
-rw-r--r--crypto/hmacpriv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/hmacpriv.h b/crypto/hmacpriv.h
index 2be389a..4387ca2 100644
--- a/crypto/hmacpriv.h
+++ b/crypto/hmacpriv.h
@@ -33,4 +33,16 @@ extern void *qcrypto_hmac_ctx_new(QCryptoHashAlgorithm alg,
Error **errp);
extern QCryptoHmacDriver qcrypto_hmac_lib_driver;
+#ifdef CONFIG_AF_ALG
+
+#include "afalgpriv.h"
+
+extern QCryptoAFAlg *
+qcrypto_afalg_hmac_ctx_new(QCryptoHashAlgorithm alg,
+ const uint8_t *key, size_t nkey,
+ Error **errp);
+extern QCryptoHmacDriver qcrypto_hmac_afalg_driver;
+
+#endif
+
#endif