summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qce/common.h
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2021-04-29 17:07:04 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-14 13:07:55 +0200
commit9363efb4181c5e0fbf86bdfa759262aa29f0eb50 (patch)
treef2aabc25891d04685b91540952a98738e40862ec /drivers/crypto/qce/common.h
parentcrypto: qce - Add mode for rfc4309 (diff)
downloadlinux-9363efb4181c5e0fbf86bdfa759262aa29f0eb50.tar.xz
linux-9363efb4181c5e0fbf86bdfa759262aa29f0eb50.zip
crypto: qce - Add support for AEAD algorithms
Introduce support to enable following algorithms in Qualcomm Crypto Engine. - authenc(hmac(sha1),cbc(des)) - authenc(hmac(sha1),cbc(des3_ede)) - authenc(hmac(sha256),cbc(des)) - authenc(hmac(sha256),cbc(des3_ede)) - authenc(hmac(sha256),cbc(aes)) - ccm(aes) - rfc4309(ccm(aes)) Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qce/common.h')
-rw-r--r--drivers/crypto/qce/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/qce/common.h b/drivers/crypto/qce/common.h
index b135440bf72b..02e63ad9f245 100644
--- a/drivers/crypto/qce/common.h
+++ b/drivers/crypto/qce/common.h
@@ -11,6 +11,7 @@
#include <crypto/aes.h>
#include <crypto/hash.h>
#include <crypto/internal/skcipher.h>
+#include <crypto/internal/aead.h>
/* xts du size */
#define QCE_SECTOR_SIZE 512
@@ -88,6 +89,7 @@ struct qce_alg_template {
union {
struct skcipher_alg skcipher;
struct ahash_alg ahash;
+ struct aead_alg aead;
} alg;
struct qce_device *qce;
const u8 *hash_zero;