aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/amcc/crypto4xx_core.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2017-10-04 01:00:16 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-12 22:55:21 +0800
commit65ea8b678fcf385ac18864743bae66c0643e6842 (patch)
tree88a63d9df014cdc5ad5c6b3be6a5410dc0b9ba73 /drivers/crypto/amcc/crypto4xx_core.h
parentcrypto: crypto4xx - prepare for AEAD support (diff)
downloadlinux-dev-65ea8b678fcf385ac18864743bae66c0643e6842.tar.xz
linux-dev-65ea8b678fcf385ac18864743bae66c0643e6842.zip
crypto: crypto4xx - add aes-ccm support
This patch adds aes-ccm support. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/amcc/crypto4xx_core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_core.h b/drivers/crypto/amcc/crypto4xx_core.h
index ab89c2af1e90..bdd5954c2388 100644
--- a/drivers/crypto/amcc/crypto4xx_core.h
+++ b/drivers/crypto/amcc/crypto4xx_core.h
@@ -222,4 +222,12 @@ static inline void crypto4xx_memcpy_to_le32(__le32 *dst, const void *buf,
{
crypto4xx_memcpy_swab32((u32 *)dst, buf, len);
}
+
+int crypto4xx_setauthsize_aead(struct crypto_aead *ciper,
+ unsigned int authsize);
+int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher,
+ const u8 *key, unsigned int keylen);
+int crypto4xx_encrypt_aes_ccm(struct aead_request *req);
+int crypto4xx_decrypt_aes_ccm(struct aead_request *req);
+
#endif