Home
last modified time | relevance | path

Searched refs:GCM_AES_IV_SIZE (Results 1 – 24 of 24) sorted by relevance

/linux/include/crypto/
H A Dgcm.h9 #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 Dzynqmp-aes-gcm.c94 + GCM_AES_IV_SIZE; in zynqmp_aes_aead_cipher()
96 dma_size = req->cryptlen + GCM_AES_IV_SIZE; in zynqmp_aes_aead_cipher()
111 memcpy(kbuf + data_size, req->iv, GCM_AES_IV_SIZE); in zynqmp_aes_aead_cipher()
125 memcpy(kbuf + data_size + GCM_AES_IV_SIZE, in zynqmp_aes_aead_cipher()
128 hwreq->key = hwreq->src + data_size + GCM_AES_IV_SIZE; in zynqmp_aes_aead_cipher()
359 .ivsize = GCM_AES_IV_SIZE,
/linux/lib/crypto/
H A Daesgcm.c150 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag) in aesgcm_encrypt() argument
154 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt()
180 int assoc_len, const u8 iv[GCM_AES_IV_SIZE], in aesgcm_decrypt() argument
186 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_decrypt()
563 u8 iv[GCM_AES_IV_SIZE];
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-galois.c105 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/crypto/
H A Dgcm.c159 memcpy(pctx->iv, req->iv, GCM_AES_IV_SIZE); in crypto_gcm_init_common()
160 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common()
634 inst->alg.ivsize = GCM_AES_IV_SIZE; in crypto_gcm_create_common()
729 scatterwalk_map_and_copy(iv + GCM_AES_IV_SIZE, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt()
735 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
742 sg_set_buf(rctx->dst, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
851 if (crypto_aead_alg_ivsize(alg) != GCM_AES_IV_SIZE) in crypto_rfc4106_create()
1012 align + GCM_AES_IV_SIZE); in crypto_rfc4543_init_tfm()
1066 if (crypto_aead_alg_ivsize(alg) != GCM_AES_IV_SIZE) in crypto_rfc4543_create()
/linux/arch/arm64/crypto/
H A Dghash-ce-glue.c353 put_unaligned_be32(2, iv + GCM_AES_IV_SIZE); in gcm_encrypt()
419 put_unaligned_be32(2, iv + GCM_AES_IV_SIZE); in gcm_decrypt()
468 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_encrypt()
476 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_decrypt()
527 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/
H A Domap-aes-gcm.c249 memcpy(rctx->iv + GCM_AES_IV_SIZE, &counter, 4); in omap_aes_gcm_crypt()
277 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in omap_aes_gcm_encrypt()
285 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in omap_aes_gcm_decrypt()
H A Datmel-aes.c1329 if (likely(ivsize == GCM_AES_IV_SIZE)) { in atmel_aes_gcm_start()
1597 .ivsize = GCM_AES_IV_SIZE,
H A Domap-aes.c752 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/nx/
H A Dnx-aes-gcm.c421 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_nx_encrypt()
431 memcpy(iv, req->iv, GCM_AES_IV_SIZE); in gcm_aes_nx_decrypt()
481 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_aead.c232 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/arch/arm/crypto/
H A Dghash-ce-glue.c697 u8 iv[GCM_AES_IV_SIZE]; in rfc4106_encrypt()
710 u8 iv[GCM_AES_IV_SIZE]; in rfc4106_decrypt()
720 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/intel/keembay/
H A Docs-aes.c703 if (!iv || iv_size != GCM_AES_IV_SIZE) in ocs_aes_validate_inputs()
942 GCM_AES_IV_SIZE, aad_dma_list, in ocs_aes_gcm_op()
H A Dkeembay-ocs-aes-core.c612 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 Djh7110-aes.c271 writel(GCM_AES_IV_SIZE, cryp->base + STARFIVE_AES_IVLEN); in starfive_aes_hw_init()
1093 .base.ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/amcc/
H A Dcrypto4xx_alg.c587 crypto4xx_memcpy_to_le32(iv, req->iv, GCM_AES_IV_SIZE); in crypto4xx_crypt_aes_gcm()
H A Dcrypto4xx_core.c1302 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c1245 memcpy(rctx->iv, req->iv, GCM_AES_IV_SIZE); in tegra_gcm_do_one_req()
1791 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/caam/
H A Dcaamalg.c1140 bool generic_gcm = (ivsize == GCM_AES_IV_SIZE); in init_gcm_job()
1153 FIFOLD_TYPE_IV | FIFOLD_TYPE_FLUSH1 | GCM_AES_IV_SIZE | last); in init_gcm_job()
2125 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/axis/
H A Dartpec6_crypto.c1921 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/arch/x86/crypto/
H A Daesni-intel_glue.c1484 .ivsize = GCM_AES_IV_SIZE, \
/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c3234 memcpy(ivptr, req->iv, GCM_AES_IV_SIZE); in create_gcm_wr()
4070 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c2587 .ivsize = GCM_AES_IV_SIZE,
/linux/drivers/crypto/bcm/
H A Dcipher.c3035 .ivsize = GCM_AES_IV_SIZE,