hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/crypto/ccree/cc_aead.h
....@@ -1,5 +1,5 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
-/* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
2
+/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
33
44 /* \file cc_aead.h
55 * ARM CryptoCell AEAD Crypto API
....@@ -65,9 +65,8 @@
6565 unsigned int hw_iv_size ____cacheline_aligned;
6666 /* used to prevent cache coherence problem */
6767 u8 backup_mac[MAX_MAC_SIZE];
68
- u8 *backup_iv; /*store iv for generated IV flow*/
69
- u8 *backup_giv; /*store iv for rfc3686(ctr) flow*/
70
- u32 assoclen; /* internal assoclen */
68
+ u8 *backup_iv; /* store orig iv */
69
+ u32 assoclen; /* size of AAD buffer to authenticate */
7170 dma_addr_t mac_buf_dma_addr; /* internal ICV DMA buffer */
7271 /* buffer for internal ccm configurations */
7372 dma_addr_t ccm_iv0_dma_addr;
....@@ -80,7 +79,6 @@
8079 dma_addr_t gcm_iv_inc2_dma_addr;
8180 dma_addr_t hkey_dma_addr; /* Phys. address of hkey */
8281 dma_addr_t gcm_block_len_dma_addr; /* Phys. address of gcm block len */
83
- bool is_gcm4543;
8482
8583 u8 *icv_virt_addr; /* Virt. address of ICV */
8684 struct async_gen_req_ctx gen_ctx;