From 42e7e15f99e1c78b2d3e7e7a1cb923e472ef8e9f Mon Sep 17 00:00:00 2001 From: Longpeng(Mike) Date: Fri, 14 Jul 2017 14:04:08 -0400 Subject: 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) Signed-off-by: Daniel P. Berrange --- crypto/hmacpriv.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crypto/hmacpriv.h') diff --git a/crypto/hmacpriv.h b/crypto/hmacpriv.h index 2be389a41b..4387ca2587 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 -- cgit v1.2.3-55-g7522