Home
last modified time | relevance | path

Searched refs:salt (Results 1 – 25 of 40) sorted by relevance

12

/dpdk/lib/ipsec/
H A Dcrypto.h31 uint32_t salt; member
61 uint32_t salt; member
90 uint32_t salt; member
100 uint8_t salt[3]; member
137 uint64_t iv, uint32_t salt) in aead_chacha20_poly1305_iv_fill() argument
139 chacha20_poly1305->salt = salt; in aead_chacha20_poly1305_iv_fill()
147 gcm->salt = salt; in aead_gcm_iv_fill()
157 tsalt.salt = salt; in aead_ccm_iv_fill()
159 ccm->salt[0] = tsalt.inner.salt8[0]; in aead_ccm_iv_fill()
160 ccm->salt[1] = tsalt.inner.salt8[1]; in aead_ccm_iv_fill()
[all …]
H A Desp_inb.c85 aead_gcm_iv_fill(gcm, ivp[0], sa->salt); in inb_cop_prepare()
93 aead_ccm_iv_fill(ccm, ivp[0], sa->salt); in inb_cop_prepare()
103 ivp[0], sa->salt); in inb_cop_prepare()
119 aead_gcm_iv_fill(gcm, ivp[0], sa->salt); in inb_cop_prepare()
127 aes_ctr_cnt_blk_fill(ctr, ivp[0], sa->salt); in inb_cop_prepare()
154 aead_gcm_iv_fill(gcm, ivp[0], sa->salt); in inb_cpu_crypto_prepare()
158 aead_ccm_iv_fill(ccm, ivp[0], sa->salt); in inb_cpu_crypto_prepare()
163 ivp[0], sa->salt); in inb_cpu_crypto_prepare()
171 aes_ctr_cnt_blk_fill(ctr, ivp[0], sa->salt); in inb_cpu_crypto_prepare()
H A Desp_outb.c92 aead_gcm_iv_fill(gcm, ivp[0], sa->salt); in outb_cop_prepare()
101 aead_gcm_iv_fill(gcm, ivp[0], sa->salt); in outb_cop_prepare()
110 aead_ccm_iv_fill(ccm, ivp[0], sa->salt); in outb_cop_prepare()
121 ivp[0], sa->salt); in outb_cop_prepare()
130 aes_ctr_cnt_blk_fill(ctr, ivp[0], sa->salt); in outb_cop_prepare()
506 aead_gcm_iv_fill(gcm, ivp[0], sa->salt); in outb_cpu_crypto_prepare()
510 aead_ccm_iv_fill(ccm, ivp[0], sa->salt); in outb_cpu_crypto_prepare()
515 ivp[0], sa->salt); in outb_cpu_crypto_prepare()
519 aes_ctr_cnt_blk_fill(ctr, ivp[0], sa->salt); in outb_cpu_crypto_prepare()
H A Dsa.h103 uint32_t salt; member
/dpdk/examples/ipsec-secgw/
H A Desp.c75 icb->salt = sa->salt; in esp_inbound()
110 icb->salt = sa->salt; in esp_inbound()
385 icb->salt = sa->salt; in esp_outbound()
426 icb->salt = sa->salt; in esp_outbound()
H A Dipsec.h111 uint32_t salt; member
258 uint32_t salt; member
H A Dipsec.c97 .salt = sa->salt, in create_lookaside_session()
170 .salt = sa->salt, in create_inline_session()
H A Dsa.c497 rule->salt = (uint32_t)rte_rand(); in parse_sa_tokens()
502 memcpy(&rule->salt, in parse_sa_tokens()
567 memcpy(&rule->salt, in parse_sa_tokens()
626 memcpy(&rule->salt, in parse_sa_tokens()
1454 prm->ipsec_xform.salt = ss->salt; in fill_ipsec_sa_prm()
/dpdk/drivers/common/dpaax/caamflib/desc/
H A Dipsec.h308 uint8_t salt[4]; member
320 uint8_t salt[4]; member
385 rta_copy_data(program, pdb->ccm.salt, sizeof(pdb->ccm.salt)); in __rta_copy_ipsec_encap_pdb()
394 rta_copy_data(program, pdb->gcm.salt, sizeof(pdb->gcm.salt)); in __rta_copy_ipsec_encap_pdb()
434 uint8_t salt[4]; member
444 uint8_t salt[4]; member
502 rta_copy_data(program, pdb->ccm.salt, sizeof(pdb->ccm.salt)); in __rta_copy_ipsec_decap_pdb()
510 rta_copy_data(program, pdb->gcm.salt, sizeof(pdb->gcm.salt)); in __rta_copy_ipsec_decap_pdb()
/dpdk/drivers/net/iavf/
H A Diavf_ipsec_crypto.c348 struct rte_crypto_aead_xform *aead, uint32_t salt) in sa_add_set_aead_params() argument
367 cfg->salt = salt; in sa_add_set_aead_params()
374 struct rte_crypto_cipher_xform *cipher, uint32_t salt) in sa_add_set_cipher_params() argument
387 cfg->salt = salt; in sa_add_set_cipher_params()
396 cfg->salt = salt; in sa_add_set_cipher_params()
403 struct rte_crypto_auth_xform *auth, uint32_t salt) in sa_add_set_auth_params() argument
430 cfg->salt = salt; in sa_add_set_auth_params()
525 &conf->crypto_xform->aead, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add()
529 &conf->crypto_xform->cipher, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add()
531 &conf->crypto_xform->next->auth, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add()
[all …]
/dpdk/app/test/
H A Dtest_cryptodev_security_ipsec_test_vectors.h74 .salt = {
174 .salt = {
276 .salt = {
485 .salt = {
1014 .salt = {
1430 .salt = {
H A Dtest_cryptodev_security_ipsec.h34 } salt; member
/dpdk/drivers/crypto/cnxk/
H A Dcnxk_se.h34 uint32_t salt; member
2152 uint8_t *salt; in fill_fc_params() local
2177 salt = fc_params.iv_buf; in fill_fc_params()
2178 if (unlikely(*(uint32_t *)salt != sess->salt)) { in fill_fc_params()
2180 sess->salt = *(uint32_t *)salt; in fill_fc_params()
2182 fc_params.iv_buf = salt + 4; in fill_fc_params()
2216 uint8_t *salt; in fill_fc_params() local
2217 salt = fc_params.iv_buf; in fill_fc_params()
2218 if (unlikely(*(uint32_t *)salt != sess->salt)) { in fill_fc_params()
2220 sess->salt = *(uint32_t *)salt; in fill_fc_params()
[all …]
/dpdk/drivers/common/cnxk/
H A Dcnxk_security.c112 memcpy(salt_key, &ipsec_xfrm->salt, 4); in ot_ipsec_sa_common_param_fill()
165 memcpy(salt_key, &ipsec_xfrm->salt, 4); in ot_ipsec_sa_common_param_fill()
333 rc = ot_ipsec_sa_common_param_fill(&w2, sa->cipher_key, sa->w8.s.salt, in cnxk_ot_ipsec_inb_sa_fill()
435 rc = ot_ipsec_sa_common_param_fill(&w2, sa->cipher_key, sa->iv.s.salt, in cnxk_ot_ipsec_outb_sa_fill()
607 onf_ipsec_sa_common_param_fill(struct roc_ie_onf_sa_ctl *ctl, uint8_t *salt, in onf_ipsec_sa_common_param_fill() argument
663 memcpy(salt, &ipsec_xfrm->salt, 4); in onf_ipsec_sa_common_param_fill()
H A Droc_se.c362 const uint8_t *key, uint16_t key_len, uint8_t *salt) in roc_se_ciph_key_set() argument
382 if ((salt != NULL) && (type == ROC_SE_AES_GCM)) { in roc_se_ciph_key_set()
383 memcpy(fctx->enc.encr_iv, salt, 4); in roc_se_ciph_key_set()
H A Droc_ie_ot.h260 uint8_t salt[4]; member
396 uint8_t salt[4]; member
H A Droc_se.h310 uint16_t key_len, uint8_t *salt);
/dpdk/drivers/common/cpt/
H A Dcpt_ucode.h81 uint8_t *salt) in cpt_fc_salt_update() argument
84 memcpy(fctx->enc.encr_iv, salt, 4); in cpt_fc_salt_update()
290 if (salt) { in cpt_fc_ciph_set_key()
3127 uint8_t *salt; in fill_fc_params() local
3154 salt = fc_params.iv_buf; in fill_fc_params()
3155 if (unlikely(*(uint32_t *)salt != sess_misc->salt)) { in fill_fc_params()
3157 sess_misc->salt = *(uint32_t *)salt; in fill_fc_params()
3195 uint8_t *salt; in fill_fc_params() local
3196 salt = fc_params.iv_buf; in fill_fc_params()
3197 if (unlikely(*(uint32_t *)salt != sess_misc->salt)) { in fill_fc_params()
[all …]
H A Dcpt_mcode_defines.h271 uint32_t salt; member
/dpdk/drivers/common/iavf/
H A Dvirtchnl_inline_ipsec.h187 u32 salt; member
407 u32 salt; member
/dpdk/drivers/crypto/nitrox/
H A Dnitrox_sym_ctx.h78 uint8_t salt[AES_GCM_SALT_SIZE]; member
/dpdk/drivers/net/txgbe/
H A Dtxgbe_ipsec.h51 uint32_t salt; member
H A Dtxgbe_ipsec.c193 rte_cpu_to_be_32(ic_session->salt)); in txgbe_crypto_add_sa()
240 rte_cpu_to_be_32(ic_session->salt)); in txgbe_crypto_add_sa()
394 memcpy(&ic_session->salt, in txgbe_crypto_create_session()
/dpdk/drivers/net/ixgbe/
H A Dixgbe_ipsec.h67 uint32_t salt; member
H A Dixgbe_ipsec.c214 rte_cpu_to_be_32(ic_session->salt)); in ixgbe_crypto_add_sa()
261 rte_cpu_to_be_32(ic_session->salt)); in ixgbe_crypto_add_sa()
414 memcpy(&ic_session->salt, in ixgbe_crypto_create_session()

12