aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2023-03-30 16:03:51 +0300
committerMatias Elo <matias.elo@nokia.com>2023-04-13 08:20:13 +0300
commit0f3fd641b091964d13565be3da283c4a6505f3e0 (patch)
treebcbfcb75636afe5af01d5f7572aa760123668204 /test
parentf16cfb0b059c27a70d8c5b4f0f6293f3c9a18037 (diff)
validation: crypto: do not allow has_error packet flag to change
Check that the has_error packet flag is not affected by crypto processing now that the API makes it more clear that it is not. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Diffstat (limited to 'test')
-rw-r--r--test/validation/api/crypto/odp_crypto_test_inp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c
index 70fa538d0..c6a7767cc 100644
--- a/test/validation/api/crypto/odp_crypto_test_inp.c
+++ b/test/validation/api/crypto/odp_crypto_test_inp.c
@@ -746,14 +746,7 @@ static void alg_test_execute(const alg_test_param_t *param)
param->ref->aad, digest_offset))
return;
- /*
- * API is not explicit about whether a failed crypto op
- * sets the has_error packet flag or leaves it unchanged.
- * Let's allow both behaviours.
- */
test_packet_get_md(pkt_out, &md_out);
- if (param->wrong_digest)
- md_out.has_error = 0;
if (param->op_type == ODP_CRYPTO_OP_TYPE_OOP) {
test_packet_md_t md;