diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2017-10-04 02:00:16 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-12 17:55:21 +0300 |
commit | 65ea8b678fcf385ac18864743bae66c0643e6842 (patch) | |
tree | 88a63d9df014cdc5ad5c6b3be6a5410dc0b9ba73 /drivers/crypto/amcc/crypto4xx_core.h | |
parent | a0aae821ba3d35a49d4d0143dfb0c07eee22130e (diff) | |
download | linux-65ea8b678fcf385ac18864743bae66c0643e6842.tar.xz |
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 'drivers/crypto/amcc/crypto4xx_core.h')
-rw-r--r-- | drivers/crypto/amcc/crypto4xx_core.h | 8 |
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 |