test/crypto: set null cipher IV length to zero
For null cipher the iv length should be set to zero. Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com> Acked-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
This commit is contained in:
parent
2eaf352d3d
commit
d954825a24
@ -379,6 +379,10 @@ iterate:
|
|||||||
cipher_xform->cipher.key.data = cipher_key;
|
cipher_xform->cipher.key.data = cipher_key;
|
||||||
cipher_xform->cipher.key.length = tdata->cipher_key.len;
|
cipher_xform->cipher.key.length = tdata->cipher_key.len;
|
||||||
cipher_xform->cipher.iv.offset = IV_OFFSET;
|
cipher_xform->cipher.iv.offset = IV_OFFSET;
|
||||||
|
|
||||||
|
if (tdata->crypto_algo == RTE_CRYPTO_CIPHER_NULL)
|
||||||
|
cipher_xform->cipher.iv.length = 0;
|
||||||
|
else
|
||||||
cipher_xform->cipher.iv.length = tdata->iv.len;
|
cipher_xform->cipher.iv.length = tdata->iv.len;
|
||||||
|
|
||||||
sym_op->cipher.data.offset = tdata->cipher_offset;
|
sym_op->cipher.data.offset = tdata->cipher_offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user