| /linux/include/crypto/ |
| H A D | gcm.h | 9 #define GCM_AES_IV_SIZE 12 macro 78 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag); 82 int assoc_len, const u8 iv[GCM_AES_IV_SIZE],
|
| /linux/drivers/crypto/xilinx/ |
| H A D | zynqmp-aes-gcm.c | 158 dmabuf = kmalloc(sizeof(*hwreq) + GCM_AES_IV_SIZE, GFP_KERNEL); in zynqmp_aes_aead_cipher() 166 memcpy(dmabuf + sizeof(struct zynqmp_aead_hw_req), req->iv, GCM_AES_IV_SIZE); in zynqmp_aes_aead_cipher() 189 GCM_AES_IV_SIZE, in zynqmp_aes_aead_cipher() 198 GCM_AES_IV_SIZE, DMA_TO_DEVICE); in zynqmp_aes_aead_cipher() 200 dma_unmap_single(dev, dma_addr_hw_req, sizeof(struct zynqmp_aead_hw_req) + GCM_AES_IV_SIZE, in zynqmp_aes_aead_cipher() 236 memzero_explicit(dmabuf, sizeof(struct zynqmp_aead_hw_req) + GCM_AES_IV_SIZE); in zynqmp_aes_aead_cipher() 267 GCM_AES_IV_SIZE; in versal_aes_aead_cipher() 289 sizeof(struct versal_in_params), req->iv, GCM_AES_IV_SIZE); in versal_aes_aead_cipher() 788 .ivsize = GCM_AES_IV_SIZE, 818 .ivsize = GCM_AES_IV_SIZE, [all …]
|
| /linux/lib/crypto/ |
| H A D | aesgcm.c | 149 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag) in aesgcm_encrypt() argument 153 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt() 179 int assoc_len, const u8 iv[GCM_AES_IV_SIZE], in aesgcm_decrypt() argument 185 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_decrypt() 562 u8 iv[GCM_AES_IV_SIZE] __nonstring;
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-crypto-aes-galois.c | 105 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in ccp_aes_gcm_crypt() 107 rctx->iv[i + GCM_AES_IV_SIZE] = 0; in ccp_aes_gcm_crypt() 171 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/arch/arm64/crypto/ |
| H A D | ghash-ce-glue.c | 300 put_unaligned_be32(2, iv + GCM_AES_IV_SIZE); in gcm_encrypt() 364 put_unaligned_be32(2, iv + GCM_AES_IV_SIZE); in gcm_decrypt() 414 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_encrypt() 422 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_decrypt() 473 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/crypto/ |
| H A D | gcm.c | 155 memcpy(pctx->iv, req->iv, GCM_AES_IV_SIZE); in crypto_gcm_init_common() 156 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common() 630 inst->alg.ivsize = GCM_AES_IV_SIZE; in crypto_gcm_create_common() 725 scatterwalk_map_and_copy(iv + GCM_AES_IV_SIZE, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt() 731 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt() 738 sg_set_buf(rctx->dst, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt() 847 if (crypto_aead_alg_ivsize(alg) != GCM_AES_IV_SIZE) in crypto_rfc4106_create() 984 align + GCM_AES_IV_SIZE); in crypto_rfc4543_init_tfm() 1033 if (crypto_aead_alg_ivsize(alg) != GCM_AES_IV_SIZE) in crypto_rfc4543_create()
|
| /linux/drivers/crypto/ |
| H A D | omap-aes-gcm.c | 248 memcpy(rctx->iv + GCM_AES_IV_SIZE, &counter, 4); in omap_aes_gcm_crypt() 276 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in omap_aes_gcm_encrypt() 284 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in omap_aes_gcm_decrypt()
|
| H A D | atmel-aes.c | 1329 if (likely(ivsize == GCM_AES_IV_SIZE)) { in atmel_aes_gcm_start() 1597 .ivsize = GCM_AES_IV_SIZE,
|
| H A D | omap-aes.c | 752 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/nx/ |
| H A D | nx-aes-gcm.c | 416 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_nx_encrypt() 426 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_nx_decrypt() 476 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/arch/arm/crypto/ |
| H A D | ghash-ce-glue.c | 508 u8 iv[GCM_AES_IV_SIZE]; in rfc4106_encrypt() 521 u8 iv[GCM_AES_IV_SIZE]; in rfc4106_decrypt() 531 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_aead.c | 232 rctx->ivsize = GCM_AES_IV_SIZE - GCM_AES_SALT_SIZE; in nitrox_aes_gcm_enc() 266 rctx->ivsize = GCM_AES_IV_SIZE - GCM_AES_SALT_SIZE; in nitrox_aes_gcm_dec() 536 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/intel/keembay/ |
| H A D | ocs-aes.c | 704 if (!iv || iv_size != GCM_AES_IV_SIZE) in ocs_aes_validate_inputs() 943 GCM_AES_IV_SIZE, aad_dma_list, in ocs_aes_gcm_op()
|
| H A D | keembay-ocs-aes-core.c | 612 if (iv_size != GCM_AES_IV_SIZE) in kmb_ocs_aead_validate_input() 1455 .base.ivsize = GCM_AES_IV_SIZE, 1500 .base.ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/starfive/ |
| H A D | jh7110-aes.c | 271 writel(GCM_AES_IV_SIZE, cryp->base + STARFIVE_AES_IVLEN); in starfive_aes_hw_init() 1094 .base.ivsize = GCM_AES_IV_SIZE,
|
| /linux/arch/x86/coco/sev/ |
| H A D | core.c | 1717 u8 iv[GCM_AES_IV_SIZE] = {}; in verify_and_dec_payload() 1756 u8 iv[GCM_AES_IV_SIZE] = {}; in enc_payload()
|
| /linux/drivers/crypto/amcc/ |
| H A D | crypto4xx_alg.c | 584 crypto4xx_memcpy_to_le32(iv, req->iv, GCM_AES_IV_SIZE); in crypto4xx_crypt_aes_gcm()
|
| H A D | crypto4xx_core.c | 1257 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/caam/ |
| H A D | caamalg.c | 1207 bool generic_gcm = (ivsize == GCM_AES_IV_SIZE); in init_gcm_job() 1220 FIFOLD_TYPE_IV | FIFOLD_TYPE_FLUSH1 | GCM_AES_IV_SIZE | last); in init_gcm_job() 2231 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/axis/ |
| H A D | artpec6_crypto.c | 1921 memcpy(req_ctx->hw_ctx.J0 + GCM_AES_IV_SIZE, "\x00\x00\x00\x01", 4); in artpec6_crypto_prepare_aead() 2794 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-aes.c | 1288 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in tegra_gcm_do_one_req() 1921 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/arch/x86/crypto/ |
| H A D | aesni-intel_glue.c | 1478 .ivsize = GCM_AES_IV_SIZE, \
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_algo.c | 3141 memcpy(ivptr, req->iv, GCM_AES_IV_SIZE); in create_gcm_wr() 3932 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_cipher.c | 2585 .ivsize = GCM_AES_IV_SIZE,
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.c | 3033 .ivsize = GCM_AES_IV_SIZE,
|