| .. | .. |
|---|
| 1 | 1 | /* 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). */ |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | /* \file cc_aead.h |
|---|
| 5 | 5 | * ARM CryptoCell AEAD Crypto API |
|---|
| .. | .. |
|---|
| 65 | 65 | unsigned int hw_iv_size ____cacheline_aligned; |
|---|
| 66 | 66 | /* used to prevent cache coherence problem */ |
|---|
| 67 | 67 | 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 */ |
|---|
| 71 | 70 | dma_addr_t mac_buf_dma_addr; /* internal ICV DMA buffer */ |
|---|
| 72 | 71 | /* buffer for internal ccm configurations */ |
|---|
| 73 | 72 | dma_addr_t ccm_iv0_dma_addr; |
|---|
| .. | .. |
|---|
| 80 | 79 | dma_addr_t gcm_iv_inc2_dma_addr; |
|---|
| 81 | 80 | dma_addr_t hkey_dma_addr; /* Phys. address of hkey */ |
|---|
| 82 | 81 | dma_addr_t gcm_block_len_dma_addr; /* Phys. address of gcm block len */ |
|---|
| 83 | | - bool is_gcm4543; |
|---|
| 84 | 82 | |
|---|
| 85 | 83 | u8 *icv_virt_addr; /* Virt. address of ICV */ |
|---|
| 86 | 84 | struct async_gen_req_ctx gen_ctx; |
|---|