Lines Matching refs:tdata

29 	const struct blockcipher_test_data *tdata = t->test_data;  in verify_algo_support()  local
35 cap_idx.algo.cipher = tdata->crypto_algo; in verify_algo_support()
43 tdata->cipher_key.len, in verify_algo_support()
44 tdata->iv.len); in verify_algo_support()
51 cap_idx.algo.auth = tdata->auth_algo; in verify_algo_support()
58 tdata->auth_key.len, in verify_algo_support()
89 const struct blockcipher_test_data *tdata = t->test_data; in test_blockcipher_one_case() local
90 uint8_t cipher_key[tdata->cipher_key.len]; in test_blockcipher_one_case()
91 uint8_t auth_key[tdata->auth_key.len]; in test_blockcipher_one_case()
92 uint32_t buf_len = tdata->ciphertext.len; in test_blockcipher_one_case()
93 uint32_t digest_len = tdata->digest.len; in test_blockcipher_one_case()
151 tdata->wrapped_key) { in test_blockcipher_one_case()
186 if (tdata->cipher_key.len) in test_blockcipher_one_case()
187 memcpy(cipher_key, tdata->cipher_key.data, in test_blockcipher_one_case()
188 tdata->cipher_key.len); in test_blockcipher_one_case()
189 if (tdata->auth_key.len) in test_blockcipher_one_case()
190 memcpy(auth_key, tdata->auth_key.data, in test_blockcipher_one_case()
191 tdata->auth_key.len); in test_blockcipher_one_case()
212 tdata->ciphertext.len, nb_segs, src_pattern); in test_blockcipher_one_case()
226 pktmbuf_write(ibuf, 0, tdata->plaintext.len, in test_blockcipher_one_case()
227 tdata->plaintext.data); in test_blockcipher_one_case()
229 pktmbuf_write(ibuf, 0, tdata->ciphertext.len, in test_blockcipher_one_case()
230 tdata->ciphertext.data); in test_blockcipher_one_case()
236 tdata->ciphertext.data + tdata->ciphertext.len, in test_blockcipher_one_case()
239 rte_memcpy(buf_p, tdata->digest.data, digest_len); in test_blockcipher_one_case()
252 const uint8_t *temp_p = tdata->ciphertext.data + in test_blockcipher_one_case()
253 tdata->ciphertext.len + in test_blockcipher_one_case()
308 rte_pktmbuf_append(ibuf, tdata->ciphertext.len); in test_blockcipher_one_case()
315 pktmbuf_write(ibuf, 0, tdata->plaintext.len, in test_blockcipher_one_case()
316 tdata->plaintext.data); in test_blockcipher_one_case()
318 pktmbuf_write(ibuf, 0, tdata->ciphertext.len, in test_blockcipher_one_case()
319 tdata->ciphertext.data); in test_blockcipher_one_case()
323 rte_memcpy(buf_p, tdata->digest.data, digest_len); in test_blockcipher_one_case()
454 cipher_xform->cipher.algo = tdata->crypto_algo; in test_blockcipher_one_case()
462 cipher_xform->cipher.key.length = tdata->cipher_key.len; in test_blockcipher_one_case()
464 cipher_xform->cipher.dataunit_len = tdata->xts_dataunit_len; in test_blockcipher_one_case()
466 if (tdata->crypto_algo == RTE_CRYPTO_CIPHER_NULL) in test_blockcipher_one_case()
469 cipher_xform->cipher.iv.length = tdata->iv.len; in test_blockcipher_one_case()
471 sym_op->cipher.data.offset = tdata->cipher_offset; in test_blockcipher_one_case()
472 sym_op->cipher.data.length = tdata->ciphertext.len - in test_blockcipher_one_case()
473 tdata->cipher_offset; in test_blockcipher_one_case()
475 sym_op->cipher.data.length += tdata->digest.len; in test_blockcipher_one_case()
479 tdata->iv.data, in test_blockcipher_one_case()
480 tdata->iv.len); in test_blockcipher_one_case()
484 uint32_t digest_offset = tdata->ciphertext.len; in test_blockcipher_one_case()
487 auth_xform->auth.algo = tdata->auth_algo; in test_blockcipher_one_case()
488 auth_xform->auth.key.length = tdata->auth_key.len; in test_blockcipher_one_case()
508 sym_op->auth.data.offset = tdata->auth_offset; in test_blockcipher_one_case()
509 sym_op->auth.data.length = tdata->ciphertext.len - in test_blockcipher_one_case()
510 tdata->auth_offset; in test_blockcipher_one_case()
560 tdata->iv.len); in test_blockcipher_one_case()
611 compare_ref = tdata->ciphertext.data + in test_blockcipher_one_case()
612 tdata->cipher_offset; in test_blockcipher_one_case()
613 compare_len = tdata->ciphertext.len - in test_blockcipher_one_case()
614 tdata->cipher_offset; in test_blockcipher_one_case()
616 compare_len += tdata->digest.len; in test_blockcipher_one_case()
618 compare_ref = tdata->plaintext.data + in test_blockcipher_one_case()
619 tdata->cipher_offset; in test_blockcipher_one_case()
620 compare_len = tdata->plaintext.len - in test_blockcipher_one_case()
621 tdata->cipher_offset; in test_blockcipher_one_case()
624 if (memcmp(rte_pktmbuf_read(iobuf, tdata->cipher_offset, in test_blockcipher_one_case()
643 tdata->ciphertext.len); in test_blockcipher_one_case()
645 if (memcmp(auth_res, tdata->digest.data, digest_len)) { in test_blockcipher_one_case()