Lines Matching refs:tdata
28 const struct blockcipher_test_data *tdata = t->test_data; in verify_algo_support() local
34 cap_idx.algo.cipher = tdata->crypto_algo; in verify_algo_support()
41 tdata->cipher_key.len, in verify_algo_support()
42 tdata->iv.len); in verify_algo_support()
49 cap_idx.algo.auth = tdata->auth_algo; in verify_algo_support()
56 tdata->auth_key.len, in verify_algo_support()
87 const struct blockcipher_test_data *tdata = t->test_data; in test_blockcipher_one_case() local
88 uint8_t cipher_key[tdata->cipher_key.len]; in test_blockcipher_one_case()
89 uint8_t auth_key[tdata->auth_key.len]; in test_blockcipher_one_case()
90 uint32_t buf_len = tdata->ciphertext.len; in test_blockcipher_one_case()
91 uint32_t digest_len = tdata->digest.len; in test_blockcipher_one_case()
168 if (tdata->cipher_key.len) in test_blockcipher_one_case()
169 memcpy(cipher_key, tdata->cipher_key.data, in test_blockcipher_one_case()
170 tdata->cipher_key.len); in test_blockcipher_one_case()
171 if (tdata->auth_key.len) in test_blockcipher_one_case()
172 memcpy(auth_key, tdata->auth_key.data, in test_blockcipher_one_case()
173 tdata->auth_key.len); in test_blockcipher_one_case()
190 tdata->ciphertext.len, nb_segs, src_pattern); in test_blockcipher_one_case()
204 pktmbuf_write(ibuf, 0, tdata->plaintext.len, in test_blockcipher_one_case()
205 tdata->plaintext.data); in test_blockcipher_one_case()
207 pktmbuf_write(ibuf, 0, tdata->ciphertext.len, in test_blockcipher_one_case()
208 tdata->ciphertext.data); in test_blockcipher_one_case()
212 rte_memcpy(buf_p, tdata->digest.data, digest_len); in test_blockcipher_one_case()
261 rte_pktmbuf_append(ibuf, tdata->ciphertext.len); in test_blockcipher_one_case()
268 pktmbuf_write(ibuf, 0, tdata->plaintext.len, in test_blockcipher_one_case()
269 tdata->plaintext.data); in test_blockcipher_one_case()
271 pktmbuf_write(ibuf, 0, tdata->ciphertext.len, in test_blockcipher_one_case()
272 tdata->ciphertext.data); in test_blockcipher_one_case()
276 rte_memcpy(buf_p, tdata->digest.data, digest_len); in test_blockcipher_one_case()
387 cipher_xform->cipher.algo = tdata->crypto_algo; in test_blockcipher_one_case()
395 cipher_xform->cipher.key.length = tdata->cipher_key.len; in test_blockcipher_one_case()
398 if (tdata->crypto_algo == RTE_CRYPTO_CIPHER_NULL) in test_blockcipher_one_case()
401 cipher_xform->cipher.iv.length = tdata->iv.len; in test_blockcipher_one_case()
403 sym_op->cipher.data.offset = tdata->cipher_offset; in test_blockcipher_one_case()
404 sym_op->cipher.data.length = tdata->ciphertext.len - in test_blockcipher_one_case()
405 tdata->cipher_offset; in test_blockcipher_one_case()
407 tdata->iv.data, in test_blockcipher_one_case()
408 tdata->iv.len); in test_blockcipher_one_case()
412 uint32_t digest_offset = tdata->ciphertext.len; in test_blockcipher_one_case()
415 auth_xform->auth.algo = tdata->auth_algo; in test_blockcipher_one_case()
416 auth_xform->auth.key.length = tdata->auth_key.len; in test_blockcipher_one_case()
436 sym_op->auth.data.offset = tdata->auth_offset; in test_blockcipher_one_case()
437 sym_op->auth.data.length = tdata->ciphertext.len - in test_blockcipher_one_case()
438 tdata->auth_offset; in test_blockcipher_one_case()
488 tdata->iv.len); in test_blockcipher_one_case()
539 compare_ref = tdata->ciphertext.data + in test_blockcipher_one_case()
540 tdata->cipher_offset; in test_blockcipher_one_case()
541 compare_len = tdata->ciphertext.len - in test_blockcipher_one_case()
542 tdata->cipher_offset; in test_blockcipher_one_case()
544 compare_ref = tdata->plaintext.data + in test_blockcipher_one_case()
545 tdata->cipher_offset; in test_blockcipher_one_case()
546 compare_len = tdata->plaintext.len - in test_blockcipher_one_case()
547 tdata->cipher_offset; in test_blockcipher_one_case()
550 if (memcmp(rte_pktmbuf_read(iobuf, tdata->cipher_offset, in test_blockcipher_one_case()
563 tdata->ciphertext.len); in test_blockcipher_one_case()
565 if (memcmp(auth_res, tdata->digest.data, digest_len)) { in test_blockcipher_one_case()