summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccree/cc_aead.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2019-04-18 16:38:59 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-25 10:38:15 +0300
commitda3cf67f1bcf25b069a54ff70fd108860242c8f7 (patch)
tree7cca5a9ff8287f8e1f0ee047e9c43b723a7c02dd /drivers/crypto/ccree/cc_aead.h
parentc9877cbc83b6ee2f5b0006b3837a3c63569bc122 (diff)
downloadlinux-da3cf67f1bcf25b069a54ff70fd108860242c8f7.tar.xz
crypto: ccree - don't mangle the request assoclen
We were mangling the request struct assoclen field. Fix it by keeping an internal version and working on it. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_aead.h')
-rw-r--r--drivers/crypto/ccree/cc_aead.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccree/cc_aead.h b/drivers/crypto/ccree/cc_aead.h
index 6cfae15f85e5..e51724b96c56 100644
--- a/drivers/crypto/ccree/cc_aead.h
+++ b/drivers/crypto/ccree/cc_aead.h
@@ -67,6 +67,7 @@ struct aead_req_ctx {
u8 backup_mac[MAX_MAC_SIZE];
u8 *backup_iv; /*store iv for generated IV flow*/
u8 *backup_giv; /*store iv for rfc3686(ctr) flow*/
+ u32 assoclen; /* internal assoclen */
dma_addr_t mac_buf_dma_addr; /* internal ICV DMA buffer */
/* buffer for internal ccm configurations */
dma_addr_t ccm_iv0_dma_addr;