From 91e832168f42c0ce4eb4dcd601fbeebbfc596aa7 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Sat, 11 Feb 2023 20:07:43 +0000 Subject: [PATCH] Restore more test guards Signed-off-by: Dave Rodgman --- tests/suites/test_suite_psa_crypto.function | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index 1ad0a4a793..c8418281fd 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -5952,6 +5952,7 @@ void aead_multipart_state_test(int key_type_arg, data_t *key_data, psa_aead_abort(&operation); /* Test for setting nonce after calling set lengths with plaintext length of SIZE_MAX */ +#if SIZE_MAX > UINT32_MAX PSA_ASSERT(psa_aead_encrypt_setup(&operation, key, alg)); if (operation.alg == PSA_ALG_GCM) { @@ -5967,6 +5968,7 @@ void aead_multipart_state_test(int key_type_arg, data_t *key_data, } psa_aead_abort(&operation); +#endif /* Test for calling set lengths with a plaintext length of SIZE_MAX, after setting nonce */ PSA_ASSERT(psa_aead_encrypt_setup(&operation, key, alg));