]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_cryptodev_blockcipher.c
cryptodev: pass IV as offset
[dpdk.git] / test / test / test_cryptodev_blockcipher.c
index aa3ecc863926d5da1d71c90225dedb8b9674f30e..aed6c847ec1053e4539ebc574790f17276e1e6f5 100644 (file)
@@ -291,12 +291,10 @@ test_blockcipher_one_case(const struct blockcipher_test_case *t,
 
                sym_op->cipher.data.offset = 0;
                sym_op->cipher.data.length = tdata->ciphertext.len;
-               sym_op->cipher.iv.data = rte_crypto_op_ctod_offset(op,
-                                               uint8_t *, IV_OFFSET);
-               sym_op->cipher.iv.phys_addr = rte_crypto_op_ctophys_offset(op,
-                                               IV_OFFSET);
+               sym_op->cipher.iv.offset = IV_OFFSET;
                sym_op->cipher.iv.length = tdata->iv.len;
-               rte_memcpy(sym_op->cipher.iv.data, tdata->iv.data,
+               rte_memcpy(rte_crypto_op_ctod_offset(op, uint8_t *, IV_OFFSET),
+                               tdata->iv.data,
                                tdata->iv.len);
        }