Home
last modified time | relevance | path

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

123456

/f-stack/dpdk/drivers/crypto/aesni_mb/
H A Drte_aesni_mb_pmd.c239 &sess->cipher.gcm_key); in aesni_mb_set_session_auth_parameters()
244 &sess->cipher.gcm_key); in aesni_mb_set_session_auth_parameters()
249 &sess->cipher.gcm_key); in aesni_mb_set_session_auth_parameters()
466 sess->cipher.mode = CBC; in aesni_mb_set_session_cipher_parameters()
478 sess->cipher.mode = DES; in aesni_mb_set_session_cipher_parameters()
489 sess->cipher.mode = ECB; in aesni_mb_set_session_cipher_parameters()
612 memcpy(sess->cipher.zuc_cipher_key, xform->cipher.key.data, in aesni_mb_set_session_cipher_parameters()
678 sess->cipher.mode = CCM; in aesni_mb_set_session_aead_parameters()
1093 cipher_end = op->sym->cipher.data.offset + op->sym->cipher.data.length; in auth_start_offset()
1224 sofs.ofs.cipher.tail; in set_cpu_mb_job_params()
[all …]
/f-stack/freebsd/crypto/rijndael/
H A Drijndael-api-fst.c72 cipher->mode = mode; in rijndael_cipherInit()
89 if (cipher == NULL || in rijndael_blockEncrypt()
100 switch (cipher->mode) { in rijndael_blockEncrypt()
147 memcpy(iv, cipher->IV, 16); in rijndael_blockEncrypt()
205 if (cipher == NULL || in rijndael_padEncrypt()
216 switch (cipher->mode) { in rijndael_padEncrypt()
233 iv = cipher->IV; in rijndael_padEncrypt()
269 if (cipher == NULL || in rijndael_blockDecrypt()
280 switch (cipher->mode) { in rijndael_blockDecrypt()
370 if (cipher == NULL || in rijndael_padDecrypt()
[all …]
/f-stack/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 …]
/f-stack/tools/libutil/
H A Dlogin_crypt.c41 const char *cipher; in login_setcryptfmt() local
43 cipher = login_getcapstr(lc, "passwd_format", def, NULL); in login_setcryptfmt()
46 "passwd_format = %s\n", cipher); in login_setcryptfmt()
47 if (cipher == NULL) in login_setcryptfmt()
49 if (!crypt_set_format(cipher)) in login_setcryptfmt()
51 return (cipher); in login_setcryptfmt()
/f-stack/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()
/f-stack/dpdk/app/test-crypto-perf/
H A Dcperf_ops.c66 sym_op->cipher.data.offset; in cperf_set_ops_security()
109 sym_op->cipher.data.length = in cperf_set_ops_null_cipher()
114 sym_op->cipher.data.offset = 0; in cperf_set_ops_null_cipher()
187 sym_op->cipher.data.length = in cperf_set_ops_cipher()
198 sym_op->cipher.data.offset = 0; in cperf_set_ops_cipher()
343 sym_op->cipher.data.length = in cperf_set_ops_cipher_auth()
354 sym_op->cipher.data.offset = 0; in cperf_set_ops_cipher_auth()
635 cipher_xform.cipher.key.data = in cperf_create_session()
683 cipher_xform.cipher.key.data = in cperf_create_session()
741 cipher_xform.cipher.key.data = in cperf_create_session()
[all …]
/f-stack/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_blockcipher.c34 cap_idx.algo.cipher = tdata->crypto_algo; in verify_algo_support()
39 if (cap_idx.algo.cipher != RTE_CRYPTO_CIPHER_NULL) in verify_algo_support()
389 cipher_xform->cipher.op = in test_blockcipher_one_case()
392 cipher_xform->cipher.op = in test_blockcipher_one_case()
394 cipher_xform->cipher.key.data = cipher_key; in test_blockcipher_one_case()
396 cipher_xform->cipher.iv.offset = IV_OFFSET; in test_blockcipher_one_case()
399 cipher_xform->cipher.iv.length = 0; in test_blockcipher_one_case()
630 sym_op->cipher.data.offset; in test_blockcipher_one_case()
631 changed_len = sym_op->cipher.data.length; in test_blockcipher_one_case()
677 sym_op->cipher.data.offset; in test_blockcipher_one_case()
[all …]
/f-stack/dpdk/lib/librte_ipsec/
H A Dsa.c24 struct rte_crypto_cipher_xform *cipher; member
64 xform->cipher = &xfn->cipher; in fill_crypto_xform()
73 xform->cipher = &xf->cipher; in fill_crypto_xform()
247 sa->ctp.cipher.length = sa->icv_len + sa->ctp.cipher.offset; in esp_inb_init()
265 sa->cofs.ofs.cipher.head = sa->ctp.cipher.offset - sa->ctp.auth.offset; in esp_inb_init()
301 sa->ctp.cipher.length = 0; in esp_outb_init()
306 sa->ctp.cipher.length = sa->iv_len; in esp_outb_init()
326 sa->cofs.ofs.cipher.head = sa->ctp.cipher.offset - sa->ctp.auth.offset; in esp_outb_init()
328 (sa->ctp.cipher.offset + sa->ctp.cipher.length); in esp_outb_init()
382 sa->iv_ofs = cxf->cipher->iv.offset; in esp_sa_init()
[all …]
/f-stack/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 …]
/f-stack/dpdk/drivers/crypto/qat/
H A Dqat_sym_capabilities.h396 {.cipher = { \
416 {.cipher = { \
436 {.cipher = { \
456 {.cipher = { \
476 {.cipher = { \
517 {.cipher = { \
537 {.cipher = { \
578 {.cipher = { \
598 {.cipher = { \
618 {.cipher = { \
[all …]
/f-stack/freebsd/net80211/
H A Dieee80211_crypto.c232 ieee80211_crypto_available(u_int cipher) in ieee80211_crypto_available() argument
234 return cipher < IEEE80211_CIPHER_MAX && ciphers[cipher] != NULL; in ieee80211_crypto_available()
275 __func__, cipher, flags, key->wk_keyix); in ieee80211_crypto_newkey()
280 if (cipher >= IEEE80211_CIPHER_MAX) { in ieee80211_crypto_newkey()
286 cip = ciphers[cipher]; in ieee80211_crypto_newkey()
296 __func__, cipher, cipher_modnames[cipher]); in ieee80211_crypto_newkey()
297 ieee80211_load_module(cipher_modnames[cipher]); in ieee80211_crypto_newkey()
303 cip = ciphers[cipher]; in ieee80211_crypto_newkey()
307 __func__, cipher, cipher_modnames[cipher]); in ieee80211_crypto_newkey()
321 if ((ic->ic_cryptocaps & (1<<cipher)) == 0) { in ieee80211_crypto_newkey()
[all …]
/f-stack/dpdk/drivers/crypto/ccp/
H A Dccp_crypto.c726 sess->cipher.key_ccp[sess->cipher.key_length - i - 1] = in ccp_configure_session_cipher()
727 sess->cipher.key[i]; in ccp_configure_session_cipher()
741 sess->cipher.key[i + x]; in ccp_configure_session_cipher()
747 sess->cipher.nonce_phys = rte_mem_virt2phy(sess->cipher.nonce); in ccp_configure_session_cipher()
748 sess->cipher.key_phys = rte_mem_virt2phy(sess->cipher.key_ccp); in ccp_configure_session_cipher()
1148 sess->cipher.key_ccp[sess->cipher.key_length - i - 1] = in ccp_configure_session_aead()
1149 sess->cipher.key[i]; in ccp_configure_session_aead()
1162 sess->cipher.nonce_phys = rte_mem_virt2phy(sess->cipher.nonce); in ccp_configure_session_aead()
1163 sess->cipher.key_phys = rte_mem_virt2phy(sess->cipher.key_ccp); in ccp_configure_session_aead()
1254 session->cipher.algo); in ccp_cipher_slot()
[all …]
/f-stack/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()
289 + sym_op->cipher.data.length); in virtqueue_crypto_sym_enqueue_xmit()
296 + sym_op->cipher.data.length); in virtqueue_crypto_sym_enqueue_xmit()
[all …]
/f-stack/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 = {
/f-stack/dpdk/doc/guides/tools/
H A Dcryptoperf.rst167 cipher-only
169 cipher-then-auth
170 auth-then-cipher
193 * ``--cipher-algo <name>``
211 * ``--cipher-op <mode>``
218 * ``--cipher-key-sz <n>``
222 * ``--cipher-iv-sz <n>``
224 Set the size of cipher iv.
399 --cipher-algo aes-cbc --cipher-op encrypt --cipher-key-sz 16 --auth-algo
408 --cipher-algo aes-cbc --cipher-key-sz 16 --cipher-iv-sz 16
[all …]
/f-stack/dpdk/lib/librte_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 …]
/f-stack/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_priv.h511 {.cipher = {
531 {.cipher = {
551 {.cipher = {
571 {.cipher = {
591 {.cipher = {
636 {.cipher = {
656 {.cipher = {
732 {.cipher = {
752 {.cipher = {
793 {.cipher = {
[all …]
/f-stack/dpdk/drivers/crypto/scheduler/
H A Dscheduler_pkt_size_distr.c74 job_len = ops[i]->sym->cipher.data.length; in schedule_enqueue()
75 job_len += (ops[i]->sym->cipher.data.length == 0) * in schedule_enqueue()
92 job_len = ops[i+1]->sym->cipher.data.length; in schedule_enqueue()
93 job_len += (ops[i+1]->sym->cipher.data.length == 0) * in schedule_enqueue()
106 job_len = ops[i+2]->sym->cipher.data.length; in schedule_enqueue()
107 job_len += (ops[i+2]->sym->cipher.data.length == 0) * in schedule_enqueue()
120 job_len = ops[i+3]->sym->cipher.data.length; in schedule_enqueue()
121 job_len += (ops[i+3]->sym->cipher.data.length == 0) * in schedule_enqueue()
136 job_len = ops[i]->sym->cipher.data.length; in schedule_enqueue()
137 job_len += (ops[i]->sym->cipher.data.length == 0) * in schedule_enqueue()
/f-stack/dpdk/drivers/crypto/dpaa_sec/
H A Ddpaa_sec.h403 {.cipher = {
423 {.cipher = {
443 {.cipher = {
463 {.cipher = {
508 {.cipher = {
528 {.cipher = {
603 {.cipher = {
623 {.cipher = {
664 {.cipher = {
684 {.cipher = {
/f-stack/dpdk/drivers/crypto/snow3g/
H A Drte_snow3g_pmd.c91 if (cipher_xform->cipher.iv.length != SNOW3G_IV_LENGTH) { in snow3g_set_session_parameters()
95 if (cipher_xform->cipher.key.length > SNOW3G_MAX_KEY_SIZE) { in snow3g_set_session_parameters()
100 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in snow3g_set_session_parameters()
103 IMB_SNOW3G_INIT_KEY_SCHED(mgr, cipher_xform->cipher.key.data, in snow3g_set_session_parameters()
197 (ops[i]->sym->cipher.data.offset >> 3); in process_snow3g_cipher_op()
200 (ops[i]->sym->cipher.data.offset >> 3) : in process_snow3g_cipher_op()
202 (ops[i]->sym->cipher.data.offset >> 3); in process_snow3g_cipher_op()
205 num_bytes[i] = ops[i]->sym->cipher.data.length >> 3; in process_snow3g_cipher_op()
226 offset_in_bits = op->sym->cipher.data.offset; in process_snow3g_cipher_op_bit()
236 length_in_bits = op->sym->cipher.data.length; in process_snow3g_cipher_op_bit()
[all …]
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dl2_forward_crypto.rst254 /* Check if device supports cipher algo */
256 opt_cipher_algo = options->cipher_xform.cipher.algo;
259 cap_cipher_algo = cap->sym.cipher.algo;
271 (cipher key and IV for the ciphering):
282 cap->sym.cipher.key_size.min,
283 cap->sym.cipher.key_size.max,
295 cap->sym.cipher.key_size.min,
296 cap->sym.cipher.key_size.max,
302 options->cipher_xform.cipher.key.length =
306 options->cipher_xform.cipher.key.length =
[all …]
/f-stack/dpdk/drivers/crypto/kasumi/
H A Drte_kasumi_pmd.c88 if (cipher_xform->cipher.algo != RTE_CRYPTO_CIPHER_KASUMI_F8) { in kasumi_set_session_parameters()
93 sess->cipher_iv_offset = cipher_xform->cipher.iv.offset; in kasumi_set_session_parameters()
94 if (cipher_xform->cipher.iv.length != KASUMI_IV_LENGTH) { in kasumi_set_session_parameters()
186 (ops[i]->sym->cipher.data.offset >> 3); in process_kasumi_cipher_op()
189 (ops[i]->sym->cipher.data.offset >> 3) : in process_kasumi_cipher_op()
191 (ops[i]->sym->cipher.data.offset >> 3); in process_kasumi_cipher_op()
195 num_bytes[i] = ops[i]->sym->cipher.data.length >> 3; in process_kasumi_cipher_op()
217 offset_in_bits = op->sym->cipher.data.offset; in process_kasumi_cipher_op_bit()
226 length_in_bits = op->sym->cipher.data.length; in process_kasumi_cipher_op_bit()
438 if (((curr_c_op->sym->cipher.data.length % BYTE_LEN) != 0) in kasumi_pmd_enqueue_burst()
[all …]

123456