Lines Matching refs:sym_op

2217 	struct rte_crypto_sym_op *sym_op = ut_params->op->sym;  in test_AES_CBC_HMAC_SHA1_encrypt_digest()  local
2220 sym_op->m_src = ut_params->ibuf; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2223 sym_op->auth.digest.data = ut_params->digest; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2224 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2227 sym_op->auth.data.offset = 0; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2228 sym_op->auth.data.length = QUOTE_512_BYTES; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2235 sym_op->cipher.data.offset = 0; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2236 sym_op->cipher.data.length = QUOTE_512_BYTES; in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2376 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in test_AES_CBC_HMAC_SHA512_decrypt_perform() local
2379 sym_op->m_src = ut_params->ibuf; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2381 sym_op->auth.digest.data = ut_params->digest; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2382 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2385 sym_op->auth.data.offset = 0; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2386 sym_op->auth.data.length = QUOTE_512_BYTES; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2392 sym_op->cipher.data.offset = 0; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2393 sym_op->cipher.data.length = QUOTE_512_BYTES; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2529 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_wireless_algo_cipher_operation() local
2532 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_operation()
2537 sym_op->cipher.data.length = cipher_len; in create_wireless_algo_cipher_operation()
2538 sym_op->cipher.data.offset = cipher_offset; in create_wireless_algo_cipher_operation()
2559 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_wireless_algo_cipher_operation_oop() local
2562 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_operation_oop()
2563 sym_op->m_dst = ut_params->obuf; in create_wireless_algo_cipher_operation_oop()
2568 sym_op->cipher.data.length = cipher_len; in create_wireless_algo_cipher_operation_oop()
2569 sym_op->cipher.data.offset = cipher_offset; in create_wireless_algo_cipher_operation_oop()
2795 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_wireless_algo_hash_operation() local
2798 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_hash_operation()
2804 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_wireless_algo_hash_operation()
2807 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_wireless_algo_hash_operation()
2809 ut_params->digest = sym_op->auth.digest.data; in create_wireless_algo_hash_operation()
2810 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_wireless_algo_hash_operation()
2813 memset(sym_op->auth.digest.data, 0, auth_tag_len); in create_wireless_algo_hash_operation()
2815 rte_memcpy(sym_op->auth.digest.data, auth_tag, auth_tag_len); in create_wireless_algo_hash_operation()
2818 sym_op->auth.digest.data, in create_wireless_algo_hash_operation()
2821 sym_op->auth.data.length = auth_len; in create_wireless_algo_hash_operation()
2822 sym_op->auth.data.offset = auth_offset; in create_wireless_algo_hash_operation()
2854 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_wireless_cipher_hash_operation() local
2857 sym_op->m_src = ut_params->ibuf; in create_wireless_cipher_hash_operation()
2860 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_wireless_cipher_hash_operation()
2863 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_wireless_cipher_hash_operation()
2865 ut_params->digest = sym_op->auth.digest.data; in create_wireless_cipher_hash_operation()
2866 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_wireless_cipher_hash_operation()
2869 memset(sym_op->auth.digest.data, 0, auth_tag_len); in create_wireless_cipher_hash_operation()
2871 rte_memcpy(sym_op->auth.digest.data, auth_tag, auth_tag_len); in create_wireless_cipher_hash_operation()
2874 sym_op->auth.digest.data, in create_wireless_cipher_hash_operation()
2884 sym_op->cipher.data.length = cipher_len; in create_wireless_cipher_hash_operation()
2885 sym_op->cipher.data.offset = 0; in create_wireless_cipher_hash_operation()
2886 sym_op->auth.data.length = auth_len; in create_wireless_cipher_hash_operation()
2887 sym_op->auth.data.offset = 0; in create_wireless_cipher_hash_operation()
2926 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_wireless_algo_cipher_hash_operation() local
2929 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_cipher_hash_operation()
2932 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_wireless_algo_cipher_hash_operation()
2935 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_wireless_algo_cipher_hash_operation()
2937 ut_params->digest = sym_op->auth.digest.data; in create_wireless_algo_cipher_hash_operation()
2940 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_wireless_algo_cipher_hash_operation()
2950 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_wireless_algo_cipher_hash_operation()
2955 memset(sym_op->auth.digest.data, 0, auth_tag_len); in create_wireless_algo_cipher_hash_operation()
2957 rte_memcpy(sym_op->auth.digest.data, auth_tag, auth_tag_len); in create_wireless_algo_cipher_hash_operation()
2960 sym_op->auth.digest.data, in create_wireless_algo_cipher_hash_operation()
2973 sym_op->cipher.data.length = cipher_len; in create_wireless_algo_cipher_hash_operation()
2974 sym_op->cipher.data.offset = cipher_offset; in create_wireless_algo_cipher_hash_operation()
2976 sym_op->cipher.data.length = cipher_len >> 3; in create_wireless_algo_cipher_hash_operation()
2977 sym_op->cipher.data.offset = cipher_offset >> 3; in create_wireless_algo_cipher_hash_operation()
2983 sym_op->auth.data.length = auth_len; in create_wireless_algo_cipher_hash_operation()
2984 sym_op->auth.data.offset = auth_offset; in create_wireless_algo_cipher_hash_operation()
2986 sym_op->auth.data.length = auth_len >> 3; in create_wireless_algo_cipher_hash_operation()
2987 sym_op->auth.data.offset = auth_offset >> 3; in create_wireless_algo_cipher_hash_operation()
3020 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_wireless_algo_auth_cipher_operation() local
3023 sym_op->m_src = ut_params->ibuf; in create_wireless_algo_auth_cipher_operation()
3025 sym_op->m_dst = ut_params->obuf; in create_wireless_algo_auth_cipher_operation()
3029 sym_op->auth.digest.data = rte_pktmbuf_mtod_offset( in create_wireless_algo_auth_cipher_operation()
3033 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_wireless_algo_auth_cipher_operation()
3037 memset(sym_op->auth.digest.data, 0, auth_tag_len); in create_wireless_algo_auth_cipher_operation()
3041 sym_op->m_src : sym_op->m_dst); in create_wireless_algo_auth_cipher_operation()
3046 sym_op->auth.digest.data = rte_pktmbuf_mtod_offset(sgl_buf, in create_wireless_algo_auth_cipher_operation()
3048 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset(sgl_buf, in create_wireless_algo_auth_cipher_operation()
3050 memset(sym_op->auth.digest.data, 0, remaining_off); in create_wireless_algo_auth_cipher_operation()
3060 memcpy(sym_op->auth.digest.data, auth_tag, auth_tag_len); in create_wireless_algo_auth_cipher_operation()
3077 sym_op->m_dst, in create_wireless_algo_auth_cipher_operation()
3080 sym_op->m_src, in create_wireless_algo_auth_cipher_operation()
3088 sym_op->cipher.data.length = cipher_len; in create_wireless_algo_auth_cipher_operation()
3089 sym_op->cipher.data.offset = cipher_offset; in create_wireless_algo_auth_cipher_operation()
3091 sym_op->cipher.data.length = cipher_len >> 3; in create_wireless_algo_auth_cipher_operation()
3092 sym_op->cipher.data.offset = cipher_offset >> 3; in create_wireless_algo_auth_cipher_operation()
3098 sym_op->auth.data.length = auth_len; in create_wireless_algo_auth_cipher_operation()
3099 sym_op->auth.data.offset = auth_offset; in create_wireless_algo_auth_cipher_operation()
3101 sym_op->auth.data.length = auth_len >> 3; in create_wireless_algo_auth_cipher_operation()
3102 sym_op->auth.data.offset = auth_offset >> 3; in create_wireless_algo_auth_cipher_operation()
8034 struct rte_crypto_sym_op *sym_op = op->sym; in create_aead_xform() local
8037 sym_op->xform->type = RTE_CRYPTO_SYM_XFORM_AEAD; in create_aead_xform()
8038 sym_op->xform->next = NULL; in create_aead_xform()
8039 sym_op->xform->aead.algo = algo; in create_aead_xform()
8040 sym_op->xform->aead.op = aead_op; in create_aead_xform()
8041 sym_op->xform->aead.key.data = key; in create_aead_xform()
8042 sym_op->xform->aead.key.length = key_len; in create_aead_xform()
8043 sym_op->xform->aead.iv.offset = IV_OFFSET; in create_aead_xform()
8044 sym_op->xform->aead.iv.length = iv_len; in create_aead_xform()
8045 sym_op->xform->aead.digest_length = auth_len; in create_aead_xform()
8046 sym_op->xform->aead.aad_length = aad_len; in create_aead_xform()
8069 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_aead_operation() local
8074 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8076 TEST_ASSERT_NOT_NULL(sym_op->aead.aad.data, in create_aead_operation()
8079 sym_op->aead.aad.phys_addr = in create_aead_operation()
8082 memcpy(sym_op->aead.aad.data + 18, tdata->aad.data, tdata->aad.len); in create_aead_operation()
8083 debug_hexdump(stdout, "aad:", sym_op->aead.aad.data, in create_aead_operation()
8096 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, in create_aead_operation()
8098 TEST_ASSERT_NOT_NULL(sym_op->aead.aad.data, in create_aead_operation()
8101 sym_op->aead.aad.phys_addr = in create_aead_operation()
8103 memcpy(sym_op->aead.aad.data, tdata->aad.data, tdata->aad.len); in create_aead_operation()
8104 debug_hexdump(stdout, "aad:", sym_op->aead.aad.data, in create_aead_operation()
8169 sym_op->aead.digest.data = (uint8_t *)rte_pktmbuf_append( in create_aead_operation()
8173 TEST_ASSERT_NOT_NULL(sym_op->aead.digest.data, in create_aead_operation()
8175 memset(sym_op->aead.digest.data, 0, tdata->auth_tag.len); in create_aead_operation()
8176 sym_op->aead.digest.phys_addr = rte_pktmbuf_iova_offset( in create_aead_operation()
8182 sym_op->aead.digest.data = (uint8_t *)rte_pktmbuf_append( in create_aead_operation()
8184 TEST_ASSERT_NOT_NULL(sym_op->aead.digest.data, in create_aead_operation()
8186 sym_op->aead.digest.phys_addr = rte_pktmbuf_iova_offset( in create_aead_operation()
8190 rte_memcpy(sym_op->aead.digest.data, tdata->auth_tag.data, in create_aead_operation()
8193 sym_op->aead.digest.data, in create_aead_operation()
8197 sym_op->aead.data.length = tdata->plaintext.len; in create_aead_operation()
8198 sym_op->aead.data.offset = aad_pad_len; in create_aead_operation()
11833 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in MD5_HMAC_create_op() local
11843 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in MD5_HMAC_create_op()
11845 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in MD5_HMAC_create_op()
11847 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in MD5_HMAC_create_op()
11851 rte_memcpy(sym_op->auth.digest.data, test_case->auth_tag.data, in MD5_HMAC_create_op()
11855 sym_op->auth.data.offset = 0; in MD5_HMAC_create_op()
11856 sym_op->auth.data.length = test_case->plaintext.len; in MD5_HMAC_create_op()
12660 struct rte_crypto_sym_op *sym_op; in create_gmac_operation() local
12670 sym_op = ut_params->op->sym; in create_gmac_operation()
12672 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_gmac_operation()
12674 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_gmac_operation()
12677 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_gmac_operation()
12681 rte_memcpy(sym_op->auth.digest.data, tdata->gmac_tag.data, in create_gmac_operation()
12684 sym_op->auth.digest.data, in create_gmac_operation()
12695 sym_op->cipher.data.length = 0; in create_gmac_operation()
12696 sym_op->cipher.data.offset = 0; in create_gmac_operation()
12698 sym_op->auth.data.offset = 0; in create_gmac_operation()
12699 sym_op->auth.data.length = tdata->plaintext.len; in create_gmac_operation()
12711 struct rte_crypto_sym_op *sym_op; in create_gmac_operation_sgl() local
12719 sym_op = ut_params->op->sym; in create_gmac_operation_sgl()
12721 sym_op->auth.digest.data = digest_mem; in create_gmac_operation_sgl()
12722 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_gmac_operation_sgl()
12725 sym_op->auth.digest.phys_addr = digest_phys; in create_gmac_operation_sgl()
12728 rte_memcpy(sym_op->auth.digest.data, tdata->gmac_tag.data, in create_gmac_operation_sgl()
12731 sym_op->auth.digest.data, in create_gmac_operation_sgl()
12742 sym_op->cipher.data.length = 0; in create_gmac_operation_sgl()
12743 sym_op->cipher.data.offset = 0; in create_gmac_operation_sgl()
12745 sym_op->auth.data.offset = 0; in create_gmac_operation_sgl()
12746 sym_op->auth.data.length = tdata->plaintext.len; in create_gmac_operation_sgl()
13505 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_auth_operation() local
13508 sym_op->m_src = ut_params->ibuf; in create_auth_operation()
13511 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_auth_operation()
13514 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_auth_operation()
13517 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_auth_operation()
13521 memset(sym_op->auth.digest.data, 0, reference->digest.len); in create_auth_operation()
13523 memcpy(sym_op->auth.digest.data, in create_auth_operation()
13528 sym_op->auth.digest.data, in create_auth_operation()
13531 sym_op->auth.data.length = reference->plaintext.len; in create_auth_operation()
13532 sym_op->auth.data.offset = 0; in create_auth_operation()
13552 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_auth_GMAC_operation() local
13555 sym_op->m_src = ut_params->ibuf; in create_auth_GMAC_operation()
13558 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_auth_GMAC_operation()
13561 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_auth_GMAC_operation()
13564 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_auth_GMAC_operation()
13568 memset(sym_op->auth.digest.data, 0, reference->digest.len); in create_auth_GMAC_operation()
13570 memcpy(sym_op->auth.digest.data, in create_auth_GMAC_operation()
13575 sym_op->auth.digest.data, in create_auth_GMAC_operation()
13581 sym_op->cipher.data.length = 0; in create_auth_GMAC_operation()
13582 sym_op->cipher.data.offset = 0; in create_auth_GMAC_operation()
13584 sym_op->auth.data.length = reference->plaintext.len; in create_auth_GMAC_operation()
13585 sym_op->auth.data.offset = 0; in create_auth_GMAC_operation()
13605 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_cipher_auth_operation() local
13608 sym_op->m_src = ut_params->ibuf; in create_cipher_auth_operation()
13611 sym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append( in create_cipher_auth_operation()
13614 TEST_ASSERT_NOT_NULL(sym_op->auth.digest.data, in create_cipher_auth_operation()
13617 sym_op->auth.digest.phys_addr = rte_pktmbuf_iova_offset( in create_cipher_auth_operation()
13621 memset(sym_op->auth.digest.data, 0, reference->digest.len); in create_cipher_auth_operation()
13623 memcpy(sym_op->auth.digest.data, in create_cipher_auth_operation()
13628 sym_op->auth.digest.data, in create_cipher_auth_operation()
13634 sym_op->cipher.data.length = reference->cipher_len; in create_cipher_auth_operation()
13635 sym_op->cipher.data.offset = reference->cipher_offset; in create_cipher_auth_operation()
13637 sym_op->auth.data.length = reference->plaintext.len; in create_cipher_auth_operation()
13638 sym_op->auth.data.offset = reference->auth_offset; in create_cipher_auth_operation()
14207 struct rte_crypto_sym_op *sym_op = ut_params->op->sym; in create_aead_operation_SGL() local
14209 sym_op->aead.digest.data = digest_mem; in create_aead_operation_SGL()
14211 TEST_ASSERT_NOT_NULL(sym_op->aead.digest.data, in create_aead_operation_SGL()
14214 sym_op->aead.digest.phys_addr = digest_phys; in create_aead_operation_SGL()
14217 rte_memcpy(sym_op->aead.digest.data, tdata->auth_tag.data, in create_aead_operation_SGL()
14220 sym_op->aead.digest.data, in create_aead_operation_SGL()
14234 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_prepend( in create_aead_operation_SGL()
14236 TEST_ASSERT_NOT_NULL(sym_op->aead.aad.data, in create_aead_operation_SGL()
14238 sym_op->aead.aad.phys_addr = rte_pktmbuf_iova( in create_aead_operation_SGL()
14241 memset(sym_op->aead.aad.data, 0, aad_len); in create_aead_operation_SGL()
14243 rte_memcpy(sym_op->aead.aad.data, tdata->aad.data, aad_len); in create_aead_operation_SGL()
14247 sym_op->aead.aad.data, aad_len); in create_aead_operation_SGL()
14256 sym_op->aead.aad.data = (uint8_t *)rte_pktmbuf_prepend( in create_aead_operation_SGL()
14258 TEST_ASSERT_NOT_NULL(sym_op->aead.aad.data, in create_aead_operation_SGL()
14260 sym_op->aead.aad.phys_addr = rte_pktmbuf_iova( in create_aead_operation_SGL()
14263 memset(sym_op->aead.aad.data, 0, aad_len); in create_aead_operation_SGL()
14264 rte_memcpy(sym_op->aead.aad.data, tdata->aad.data, aad_len); in create_aead_operation_SGL()
14268 sym_op->aead.aad.data, aad_len); in create_aead_operation_SGL()
14271 sym_op->aead.data.length = tdata->plaintext.len; in create_aead_operation_SGL()
14272 sym_op->aead.data.offset = aad_len_pad; in create_aead_operation_SGL()