Home
last modified time | relevance | path

Searched refs:aes_gcm (Results 1 – 6 of 6) sorted by relevance

/drivers/crypto/nx/
Dnx-aes-gcm.c54 memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in gcm_aes_nx_set_key()
192 memcpy(csbcpb->cpb.aes_gcm.iv_or_cnt, iv, AES_BLOCK_SIZE); in gmac()
215 csbcpb->cpb.aes_gcm.bit_length_data = 0; in gmac()
216 csbcpb->cpb.aes_gcm.bit_length_aad = 8 * nbytes; in gmac()
223 memcpy(csbcpb->cpb.aes_gcm.in_pat_or_aad, in gmac()
224 csbcpb->cpb.aes_gcm.out_pat_or_mac, AES_BLOCK_SIZE); in gmac()
225 memcpy(csbcpb->cpb.aes_gcm.in_s0, in gmac()
226 csbcpb->cpb.aes_gcm.out_s0, AES_BLOCK_SIZE); in gmac()
259 memcpy(csbcpb->cpb.aes_ecb.key, csbcpb->cpb.aes_gcm.key, in gcm_empty()
292 memcpy(csbcpb->cpb.aes_gcm.out_pat_or_mac, out, in gcm_empty()
[all …]
Dnx_csbcpb.h125 struct cop_symcpb_aes_gcm aes_gcm; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_offload.c53 struct aes_gcm_keymat *aes_gcm = &attrs->aes_gcm; in mlx5_create_ipsec_obj() local
63 memcpy(salt_p, &aes_gcm->salt, sizeof(aes_gcm->salt)); in mlx5_create_ipsec_obj()
67 memcpy(salt_iv_p, &aes_gcm->seq_iv, sizeof(aes_gcm->seq_iv)); in mlx5_create_ipsec_obj()
109 struct aes_gcm_keymat *aes_gcm = &sa_entry->attrs.aes_gcm; in mlx5_ipsec_create_sa_ctx() local
114 err = mlx5_create_encryption_key(mdev, aes_gcm->aes_key, in mlx5_ipsec_create_sa_ctx()
115 aes_gcm->key_len / BITS_PER_BYTE, in mlx5_ipsec_create_sa_ctx()
Dipsec.c137 struct aes_gcm_keymat *aes_gcm = &attrs->aes_gcm; in mlx5e_ipsec_build_accel_xfrm_attrs() local
149 memcpy(aes_gcm->aes_key, x->aead->alg_key, key_len); in mlx5e_ipsec_build_accel_xfrm_attrs()
150 aes_gcm->key_len = key_len * 8; in mlx5e_ipsec_build_accel_xfrm_attrs()
156 memcpy(&aes_gcm->seq_iv, &geniv_ctx->salt, ivsize); in mlx5e_ipsec_build_accel_xfrm_attrs()
157 memcpy(&aes_gcm->salt, x->aead->alg_key + key_len, in mlx5e_ipsec_build_accel_xfrm_attrs()
158 sizeof(aes_gcm->salt)); in mlx5e_ipsec_build_accel_xfrm_attrs()
161 aes_gcm->icv_len = x->aead->alg_icv_len; in mlx5e_ipsec_build_accel_xfrm_attrs()
Dipsec.h72 struct aes_gcm_keymat aes_gcm; member
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1220 GEN_SEC_AEAD_SETKEY_FUNC(aes_gcm, 0, SEC_CALG_AES, in GEN_SEC_AEAD_SETKEY_FUNC()