aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2023-04-05 14:38:55 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2023-04-06 09:11:13 +0300
commit7c1a68785ef477004c0fc679bce98c74020bda52 (patch)
treeb22d718c94a6691e0db82706b855f06a7aaba309 /test
parent217f7e904b8727cc54602b658e6b494a6dc2aaaa (diff)
validation: crypto: do not combine aes-gmac with any cipher
ODP API says that AES-GMAC can be combined only with the null cipher, so do not test AES-GMAC with any non-null cipher. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r--test/validation/api/crypto/odp_crypto_test_inp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c
index 7fa43a8d8..4ed20a57c 100644
--- a/test/validation/api/crypto/odp_crypto_test_inp.c
+++ b/test/validation/api/crypto/odp_crypto_test_inp.c
@@ -2263,6 +2263,11 @@ static void test_combo_variants(odp_cipher_alg_t cipher, odp_auth_alg_t auth)
{
int num, num_ciphers, num_auths;
+ /* ODP API says AES-GMAC can be combined with the null cipher only */
+ if (auth == ODP_AUTH_ALG_AES_GMAC &&
+ cipher != ODP_CIPHER_ALG_NULL)
+ return;
+
if (check_alg_support(cipher, auth) == ODP_TEST_INACTIVE)
return;