Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/accel/
Dipsec_offload.c72 if (attrs->keymat.aes_gcm.iv_algo != in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
75 attrs->keymat.aes_gcm.iv_algo); in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
79 if (attrs->keymat.aes_gcm.key_len != 128 && in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
80 attrs->keymat.aes_gcm.key_len != 256) { in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
82 attrs->keymat.aes_gcm.key_len); in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
129 const struct aes_gcm_keymat *aes_gcm; member
139 const struct aes_gcm_keymat *aes_gcm = attrs->aes_gcm; in mlx5_create_ipsec_obj() local
149 memcpy(salt_p, &aes_gcm->salt, sizeof(aes_gcm->salt)); in mlx5_create_ipsec_obj()
151 switch (aes_gcm->icv_len) { in mlx5_create_ipsec_obj()
168 memcpy(salt_iv_p, &aes_gcm->seq_iv, sizeof(aes_gcm->seq_iv)); in mlx5_create_ipsec_obj()
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_flow_action.c68 struct ib_uverbs_flow_action_esp_keymat_aes_gcm *aes_gcm = in validate_flow_action_esp_keymat_aes_gcm() local
69 &keymat->keymat.aes_gcm; in validate_flow_action_esp_keymat_aes_gcm()
71 if (aes_gcm->iv_algo > IB_UVERBS_FLOW_ACTION_IV_ALGO_SEQ) in validate_flow_action_esp_keymat_aes_gcm()
74 if (aes_gcm->key_len != 32 && in validate_flow_action_esp_keymat_aes_gcm()
75 aes_gcm->key_len != 24 && in validate_flow_action_esp_keymat_aes_gcm()
76 aes_gcm->key_len != 16) in validate_flow_action_esp_keymat_aes_gcm()
79 if (aes_gcm->icv_len != 16 && in validate_flow_action_esp_keymat_aes_gcm()
80 aes_gcm->icv_len != 8 && in validate_flow_action_esp_keymat_aes_gcm()
81 aes_gcm->icv_len != 12) in validate_flow_action_esp_keymat_aes_gcm()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c152 struct aes_gcm_keymat *aes_gcm = &attrs->keymat.aes_gcm; in mlx5e_ipsec_build_accel_xfrm_attrs() local
164 memcpy(aes_gcm->aes_key, x->aead->alg_key, key_len); in mlx5e_ipsec_build_accel_xfrm_attrs()
165 aes_gcm->key_len = key_len * 8; in mlx5e_ipsec_build_accel_xfrm_attrs()
171 memcpy(&aes_gcm->seq_iv, &geniv_ctx->salt, ivsize); in mlx5e_ipsec_build_accel_xfrm_attrs()
172 memcpy(&aes_gcm->salt, x->aead->alg_key + key_len, in mlx5e_ipsec_build_accel_xfrm_attrs()
173 sizeof(aes_gcm->salt)); in mlx5e_ipsec_build_accel_xfrm_attrs()
176 aes_gcm->icv_len = x->aead->alg_icv_len; in mlx5e_ipsec_build_accel_xfrm_attrs()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dipsec.c465 const struct aes_gcm_keymat *aes_gcm = &xfrm_attrs->keymat.aes_gcm; in mlx5_fpga_ipsec_build_hw_xfrm() local
468 memcpy(&hw_sa->ipsec_sa_v1.key_enc, aes_gcm->aes_key, in mlx5_fpga_ipsec_build_hw_xfrm()
469 aes_gcm->key_len / 8); in mlx5_fpga_ipsec_build_hw_xfrm()
471 if (aes_gcm->key_len == 128) in mlx5_fpga_ipsec_build_hw_xfrm()
473 aes_gcm->aes_key, aes_gcm->key_len / 8); in mlx5_fpga_ipsec_build_hw_xfrm()
476 memcpy(&hw_sa->ipsec_sa_v1.gcm.salt_iv, &aes_gcm->seq_iv, in mlx5_fpga_ipsec_build_hw_xfrm()
477 sizeof(aes_gcm->seq_iv)); in mlx5_fpga_ipsec_build_hw_xfrm()
478 memcpy(&hw_sa->ipsec_sa_v1.gcm.salt, &aes_gcm->salt, in mlx5_fpga_ipsec_build_hw_xfrm()
479 sizeof(aes_gcm->salt)); in mlx5_fpga_ipsec_build_hw_xfrm()
502 switch (aes_gcm->key_len) { in mlx5_fpga_ipsec_build_hw_xfrm()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dfs.c1575 struct ib_uverbs_flow_action_esp_keymat_aes_gcm *aes_gcm; in mlx5_ib_create_flow_action_esp() local
1605 aes_gcm = &attr->keymat->keymat.aes_gcm; in mlx5_ib_create_flow_action_esp()
1607 if (aes_gcm->icv_len != 16 || in mlx5_ib_create_flow_action_esp()
1608 aes_gcm->iv_algo != IB_UVERBS_FLOW_ACTION_IV_ALGO_SEQ) in mlx5_ib_create_flow_action_esp()
1616 memcpy(&accel_attrs.keymat.aes_gcm.aes_key, &aes_gcm->aes_key, in mlx5_ib_create_flow_action_esp()
1617 sizeof(accel_attrs.keymat.aes_gcm.aes_key)); in mlx5_ib_create_flow_action_esp()
1618 accel_attrs.keymat.aes_gcm.key_len = aes_gcm->key_len * 8; in mlx5_ib_create_flow_action_esp()
1619 memcpy(&accel_attrs.keymat.aes_gcm.salt, &aes_gcm->salt, in mlx5_ib_create_flow_action_esp()
1620 sizeof(accel_attrs.keymat.aes_gcm.salt)); in mlx5_ib_create_flow_action_esp()
1621 memcpy(&accel_attrs.keymat.aes_gcm.seq_iv, &aes_gcm->iv, in mlx5_ib_create_flow_action_esp()
[all …]
/kernel/linux/linux-5.10/include/linux/mlx5/
Daccel.h93 struct aes_gcm_keymat aes_gcm; member
/kernel/linux/linux-5.10/include/rdma/
Dib_verbs.h2083 struct ib_uverbs_flow_action_esp_keymat_aes_gcm aes_gcm; member