Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 140) sorted by relevance

123456

/dpdk/drivers/crypto/ipsec_mb/
H A Dpmd_aesni_mb.c166 &sess->cipher.gcm_key); in aesni_mb_set_session_auth_parameters()
171 &sess->cipher.gcm_key); in aesni_mb_set_session_auth_parameters()
176 &sess->cipher.gcm_key); in aesni_mb_set_session_auth_parameters()
551 sess->cipher.key_length_in_bytes = xform->cipher.key.length; in aesni_mb_set_session_cipher_parameters()
552 memcpy(sess->cipher.zuc_cipher_key, xform->cipher.key.data, in aesni_mb_set_session_cipher_parameters()
656 &sess->cipher.gcm_key); in aesni_mb_set_session_aead_parameters()
661 &sess->cipher.gcm_key); in aesni_mb_set_session_aead_parameters()
666 &sess->cipher.gcm_key); in aesni_mb_set_session_aead_parameters()
1089 sofs.ofs.cipher.tail; in set_cpu_mb_job_params()
1596 sess->cipher.mode)) in post_process_mb_job()
[all …]
H A Dpmd_aesni_mb_priv.h303 {.cipher = {
319 {.cipher = {
339 {.cipher = {
359 {.cipher = {
379 {.cipher = {
399 {.cipher = {
419 {.cipher = {
545 {.cipher = {
586 {.cipher = {
631 {.cipher = {
[all …]
H A Dpmd_kasumi.c32 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_KASUMI_F8) { in kasumi_session_configure()
37 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in kasumi_session_configure()
38 if (cipher_xform->cipher.iv.length != KASUMI_IV_LENGTH) { in kasumi_session_configure()
45 cipher_xform->cipher.key.data, in kasumi_session_configure()
87 + (ops[i]->sym->cipher.data.offset >> 3); in process_kasumi_cipher_op()
90 + (ops[i]->sym->cipher.data.offset >> 3) in process_kasumi_cipher_op()
92 + (ops[i]->sym->cipher.data.offset >> 3); in process_kasumi_cipher_op()
96 num_bytes[i] = ops[i]->sym->cipher.data.length >> 3; in process_kasumi_cipher_op()
119 offset_in_bits = op->sym->cipher.data.offset; in process_kasumi_cipher_op_bit()
128 length_in_bits = op->sym->cipher.data.length; in process_kasumi_cipher_op_bit()
[all …]
H A Dpmd_zuc.c25 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_ZUC_EEA3) in zuc_session_configure()
28 if (cipher_xform->cipher.iv.length != ZUC_IV_KEY_LENGTH) { in zuc_session_configure()
32 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in zuc_session_configure()
35 memcpy(sess->pKey_cipher, cipher_xform->cipher.key.data, in zuc_session_configure()
82 if (((ops[i]->sym->cipher.data.length % BYTE_LEN) != 0) in process_zuc_cipher_op()
83 || ((ops[i]->sym->cipher.data.offset in process_zuc_cipher_op()
111 (ops[i]->sym->cipher.data.offset >> 3); in process_zuc_cipher_op()
114 (ops[i]->sym->cipher.data.offset >> 3) : in process_zuc_cipher_op()
116 (ops[i]->sym->cipher.data.offset >> 3); in process_zuc_cipher_op()
119 num_bytes[i] = ops[i]->sym->cipher.data.length >> 3; in process_zuc_cipher_op()
/dpdk/drivers/crypto/openssl/
H A Drte_openssl_pmd.c333 if (EVP_EncryptInit_ex(sess->cipher.ctx, sess->cipher.evp_algo, in openssl_set_sess_aead_enc_param()
392 if (EVP_DecryptInit_ex(sess->cipher.ctx, sess->cipher.evp_algo, in openssl_set_sess_aead_dec_param()
416 sess->cipher.direction = xform->cipher.op; in openssl_set_session_cipher_parameters()
418 sess->cipher.key.length = xform->cipher.key.length; in openssl_set_session_cipher_parameters()
430 sess->cipher.algo = xform->cipher.algo; in openssl_set_session_cipher_parameters()
433 if (get_cipher_algo(sess->cipher.algo, sess->cipher.key.length, in openssl_set_session_cipher_parameters()
437 get_cipher_key(xform->cipher.key.data, sess->cipher.key.length, in openssl_set_session_cipher_parameters()
469 sess->cipher.algo = xform->cipher.algo; in openssl_set_session_cipher_parameters()
473 get_cipher_key(xform->cipher.key.data, sess->cipher.key.length, in openssl_set_session_cipher_parameters()
495 sess->cipher.algo = xform->cipher.algo; in openssl_set_session_cipher_parameters()
[all …]
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_sym.c37 op->sym->cipher.data.offset); in process_crypto_cipher_op()
42 op->sym->cipher.data.offset); in process_crypto_cipher_op()
49 sess->cipher.iv.offset); in process_crypto_cipher_op()
51 fsattr_sz(&iv) = sess->cipher.iv.length; in process_crypto_cipher_op()
58 sess->cipher.op, &src, in process_crypto_cipher_op()
140 sym_op->cipher.data.offset); in process_crypto_combined_op()
145 sym_op->cipher.data.offset); in process_crypto_combined_op()
148 sym_op->cipher.data.offset); in process_crypto_combined_op()
150 sym_op->cipher.data.offset); in process_crypto_combined_op()
154 sess->cipher.iv.offset); in process_crypto_combined_op()
[all …]
H A Dbcmfs_sym_session.c60 sess->cipher.key.length = cipher_xform->key.length; in crypto_set_session_cipher_parameters()
61 sess->cipher.iv.offset = cipher_xform->iv.offset; in crypto_set_session_cipher_parameters()
62 sess->cipher.iv.length = cipher_xform->iv.length; in crypto_set_session_cipher_parameters()
63 sess->cipher.op = cipher_xform->op; in crypto_set_session_cipher_parameters()
64 sess->cipher.algo = cipher_xform->algo; in crypto_set_session_cipher_parameters()
67 sess->cipher.key.length, in crypto_set_session_cipher_parameters()
68 sess->cipher.key.data); in crypto_set_session_cipher_parameters()
140 return &xform->cipher; in crypto_get_cipher_xform()
/dpdk/app/test-crypto-perf/
H A Dcperf_ops.c110 sym_op->cipher.data.offset; in cperf_set_ops_security()
217 sym_op->cipher.data.length = in cperf_set_ops_null_cipher()
222 sym_op->cipher.data.offset = 0; in cperf_set_ops_null_cipher()
297 sym_op->cipher.data.length = in cperf_set_ops_cipher()
308 sym_op->cipher.data.offset = 0; in cperf_set_ops_cipher()
455 sym_op->cipher.data.length = in cperf_set_ops_cipher_auth()
466 sym_op->cipher.data.offset = 0; in cperf_set_ops_cipher_auth()
689 xform.cipher.key.length = in create_ipsec_session()
692 xform.cipher.key.data = NULL; in create_ipsec_session()
693 xform.cipher.key.length = 0; in create_ipsec_session()
[all …]
/dpdk/app/test/
H A Dtest_cryptodev_snow3g_test_vectors.h55 } cipher; member
114 .cipher = {
173 .cipher = {
220 .cipher = {
278 .cipher = {
341 .cipher = {
396 .cipher = {
486 .cipher = {
579 .cipher = {
646 .cipher = {
[all …]
H A Dtest_cryptodev_mixed_test_vectors.h42 } cipher; member
108 .cipher = {
207 .cipher = {
290 .cipher = {
486 .cipher = {
573 .cipher = {
653 .cipher = {
729 .cipher = {
925 .cipher = {
1004 .cipher = {
[all …]
H A Dtest_cryptodev_security_ipsec.h53 struct rte_crypto_sym_xform cipher; member
102 enum rte_crypto_cipher_algorithm cipher; member
132 .alg.cipher = RTE_CRYPTO_CIPHER_NULL,
138 .alg.cipher = RTE_CRYPTO_CIPHER_AES_CBC,
144 .alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,
150 .alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,
156 .alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,
230 struct rte_crypto_sym_xform *cipher);
H A Dtest_cryptodev_security_ipsec.c243 struct rte_crypto_sym_xform *cipher) in test_ipsec_crypto_caps_cipher_verify() argument
253 cap->sym.cipher.algo == cipher->cipher.algo) { in test_ipsec_crypto_caps_cipher_verify()
256 cipher->cipher.key.length, in test_ipsec_crypto_caps_cipher_verify()
257 cipher->cipher.iv.length) == 0) in test_ipsec_crypto_caps_cipher_verify()
313 td_in->xform.chain.cipher.cipher.op = in test_ipsec_td_in_from_out()
422 td->xform.chain.cipher.cipher.algo = in test_ipsec_td_prepare()
423 param1->alg.cipher; in test_ipsec_td_prepare()
424 td->xform.chain.cipher.cipher.key.length = in test_ipsec_td_prepare()
426 td->xform.chain.cipher.cipher.iv.length = in test_ipsec_td_prepare()
600 iv_len = td->xform.chain.cipher.cipher.iv.length; in test_ipsec_iv_verify_push()
[all …]
H A Dtest_cryptodev_security_ipsec_test_vectors.h418 .chain.cipher = {
421 .cipher = {
621 .chain.cipher = {
624 .cipher = {
726 .chain.cipher = {
729 .cipher = {
834 .chain.cipher = {
837 .cipher = {
939 .chain.cipher = {
942 .cipher = {
[all …]
/dpdk/drivers/crypto/armv8/
H A Drte_armv8_pmd.c352 cipher_key_sched(sess->cipher.key.data, xform->cipher.key.data); in cipher_set_prerequisites()
378 sess->cipher.direction = cipher_xform->cipher.op; in armv8_crypto_set_session_chained_parameters()
380 sess->cipher.key.length = cipher_xform->cipher.key.length; in armv8_crypto_set_session_chained_parameters()
399 sess->cipher.algo = calg; in armv8_crypto_set_session_chained_parameters()
401 sess->cipher.iv.length = 16; in armv8_crypto_set_session_chained_parameters()
429 sess->cipher.key_sched = in armv8_crypto_set_session_chained_parameters()
437 sess->cipher.key_sched = NULL; in armv8_crypto_set_session_chained_parameters()
497 sess->cipher.iv.offset = cipher_xform->cipher.iv.offset; in armv8_crypto_set_session_parameters()
586 op->sym->cipher.data.offset); in process_armv8_chained_op()
632 sess->cipher.iv.offset); in process_armv8_chained_op()
[all …]
/dpdk/lib/ipsec/
H A Dsa.c55 xform->cipher = &xfn->cipher; in fill_crypto_xform()
71 xform->cipher = &xfn->cipher; in fill_crypto_xform()
80 xform->cipher = &xf->cipher; in fill_crypto_xform()
258 sa->ctp.cipher.length = sa->icv_len + sa->ctp.cipher.offset; in esp_inb_init()
277 sa->cofs.ofs.cipher.head = sa->ctp.cipher.offset - sa->ctp.auth.offset; in esp_inb_init()
315 sa->ctp.cipher.length = 0; in esp_outb_init()
323 sa->ctp.cipher.offset = 0; in esp_outb_init()
324 sa->ctp.cipher.length = 0; in esp_outb_init()
345 sa->cofs.ofs.cipher.head = sa->ctp.cipher.offset - sa->ctp.auth.offset; in esp_outb_init()
347 (sa->ctp.cipher.offset + sa->ctp.cipher.length); in esp_outb_init()
[all …]
/dpdk/drivers/crypto/ccp/
H A Dccp_crypto.c728 sess->cipher.key_ccp[sess->cipher.key_length - i - 1] = in ccp_configure_session_cipher()
729 sess->cipher.key[i]; in ccp_configure_session_cipher()
750 sess->cipher.nonce_phys = rte_mem_virt2iova(sess->cipher.nonce); in ccp_configure_session_cipher()
751 sess->cipher.key_phys = rte_mem_virt2iova(sess->cipher.key_ccp); in ccp_configure_session_cipher()
753 sess->cipher.nonce_phys = rte_mem_virt2phy(sess->cipher.nonce); in ccp_configure_session_cipher()
754 sess->cipher.key_phys = rte_mem_virt2phy(sess->cipher.key_ccp); in ccp_configure_session_cipher()
1160 sess->cipher.key_ccp[sess->cipher.key_length - i - 1] = in ccp_configure_session_aead()
1175 sess->cipher.nonce_phys = rte_mem_virt2iova(sess->cipher.nonce); in ccp_configure_session_aead()
1176 sess->cipher.key_phys = rte_mem_virt2iova(sess->cipher.key_ccp); in ccp_configure_session_aead()
1178 sess->cipher.nonce_phys = rte_mem_virt2phy(sess->cipher.nonce); in ccp_configure_session_aead()
[all …]
/dpdk/drivers/crypto/mlx5/
H A Dmlx5_crypto_dek.c17 struct rte_crypto_cipher_xform *cipher; member
30 struct rte_crypto_cipher_xform *cipher) in mlx5_crypto_dek_prepare() argument
34 .cipher = cipher, in mlx5_crypto_dek_prepare()
37 struct rte_crypto_cipher_xform *cipher_ctx = cipher; in mlx5_crypto_dek_prepare()
79 struct rte_crypto_cipher_xform *cipher_ctx = ctx->cipher; in mlx5_crypto_dek_match_cb()
93 struct rte_crypto_cipher_xform *cipher_ctx = ctx->cipher; in mlx5_crypto_dek_create_cb()
/dpdk/drivers/crypto/virtio/
H A Dvirtio_rxtx.c131 cipher_para = &sym_sess_req->u.cipher.para; in virtqueue_crypto_sym_pkt_header_arrange()
137 req_data->u.sym_req.u.cipher.para.iv_len in virtqueue_crypto_sym_pkt_header_arrange()
141 (sym_op->cipher.data.length + in virtqueue_crypto_sym_pkt_header_arrange()
142 sym_op->cipher.data.offset); in virtqueue_crypto_sym_pkt_header_arrange()
160 (sym_op->cipher.data.length + in virtqueue_crypto_sym_pkt_header_arrange()
161 sym_op->cipher.data.offset); in virtqueue_crypto_sym_pkt_header_arrange()
165 sym_op->cipher.data.offset; in virtqueue_crypto_sym_pkt_header_arrange()
167 sym_op->cipher.data.length; in virtqueue_crypto_sym_pkt_header_arrange()
292 + sym_op->cipher.data.length); in virtqueue_crypto_sym_enqueue_xmit()
299 + sym_op->cipher.data.length); in virtqueue_crypto_sym_enqueue_xmit()
[all …]
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev_capabilities.c370 {.cipher = {
390 {.cipher = {
410 {.cipher = {
430 {.cipher = {
450 {.cipher = {
470 {.cipher = {
490 {.cipher = {
510 {.cipher = {
530 {.cipher = {
550 {.cipher = {
/dpdk/drivers/crypto/cnxk/
H A Dcnxk_ipsec.h23 if (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_NULL) in ipsec_xform_cipher_verify()
26 if (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC || in ipsec_xform_cipher_verify()
27 crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CTR) { in ipsec_xform_cipher_verify()
28 switch (crypto_xform->cipher.key.length) { in ipsec_xform_cipher_verify()
139 (cipher_xform->cipher.algo != in cnxk_ipsec_xform_verify()
149 cipher_xform->cipher.algo != in cnxk_ipsec_xform_verify()
H A Dcnxk_cryptodev_capabilities.c368 {.cipher = {
388 {.cipher = {
486 {.cipher = {
506 {.cipher = {
526 {.cipher = {
599 {.cipher = {
642 {.cipher = {
662 {.cipher = {
682 {.cipher = {
725 {.cipher = {
[all …]
/dpdk/doc/guides/tools/
H A Dcryptoperf.rst170 cipher-only
172 cipher-then-auth
173 auth-then-cipher
197 * ``--cipher-algo <name>``
215 * ``--cipher-op <mode>``
222 * ``--cipher-key-sz <n>``
226 * ``--cipher-iv-sz <n>``
228 Set the size of cipher iv.
408 --cipher-algo aes-cbc --cipher-op encrypt --cipher-key-sz 16 --auth-algo
417 --cipher-algo aes-cbc --cipher-key-sz 16 --cipher-iv-sz 16
[all …]
/dpdk/lib/vhost/
H A Dvhost_crypto.c255 if (xform->cipher.key.length > 0) in transform_cipher_param()
266 ret = get_iv_len(xform->cipher.algo); in transform_cipher_param()
269 xform->cipher.iv.length = (uint16_t)ret; in transform_cipher_param()
270 xform->cipher.iv.offset = IV_OFFSET; in transform_cipher_param()
300 &xform_cipher->cipher.algo); in transform_chain_param()
316 xform_cipher->cipher.iv.offset = IV_OFFSET; in transform_chain_param()
854 cipher->para.iv_len, max_n_descs))) { in prepare_sym_cipher_op()
863 cipher->para.src_data_len); in prepare_sym_cipher_op()
942 op->sym->cipher.data.offset = 0; in prepare_sym_cipher_op()
943 op->sym->cipher.data.length = cipher->para.src_data_len; in prepare_sym_cipher_op()
[all …]
/dpdk/drivers/crypto/qat/dev/
H A Dqat_crypto_pmd_gens.h52 sym_op->cipher.data.length % block_len : 0; in qat_bpicipher_preprocess()
58 sym_op->cipher.data.length - last_block_len; in qat_bpicipher_preprocess()
122 ((op->sym->cipher.data.offset % in qat_cipher_is_len_in_bits()
241 cipher_ofs = op->sym->cipher.data.offset; in qat_sym_convert_op_to_vec_cipher()
243 cipher_len = op->sym->cipher.data.length; in qat_sym_convert_op_to_vec_cipher()
244 cipher_ofs = op->sym->cipher.data.offset; in qat_sym_convert_op_to_vec_cipher()
487 ofs.ofs.cipher.head = cipher_ofs; in qat_sym_convert_op_to_vec_chain()
584 ofs.ofs.cipher.tail; in enqueue_one_cipher_job_gen1()
650 ofs.ofs.cipher.tail; in enqueue_one_chain_job_gen1()
748 ofs.ofs.cipher.head); in enqueue_one_aead_job_gen1()
[all …]
/dpdk/examples/l2fwd-crypto/
H A Dmain.c514 op->sym->cipher.data.length = data_len; in l2fwd_simple_crypto_enqueue()
1547 options->cipher_xform.cipher.key.data, in display_cipher_info()
1857 options->cipher_xform.cipher.algo; in check_device_support_cipher_algo()
2159 cap->sym.cipher.key_size.min, in check_capabilities()
2160 cap->sym.cipher.key_size.max, in check_capabilities()
2161 cap->sym.cipher.key_size.increment) in check_capabilities()
2184 cap->sym.cipher.key_size.min, in check_capabilities()
2185 cap->sym.cipher.key_size.max, in check_capabilities()
2186 cap->sym.cipher.key_size.increment) in check_capabilities()
2509 cap->sym.cipher.iv_size.min; in initialize_cryptodevs()
[all …]

123456