mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Restore more test guards
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@ -5952,6 +5952,7 @@ void aead_multipart_state_test(int key_type_arg, data_t *key_data,
|
|||||||
psa_aead_abort(&operation);
|
psa_aead_abort(&operation);
|
||||||
|
|
||||||
/* Test for setting nonce after calling set lengths with plaintext length of SIZE_MAX */
|
/* 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));
|
PSA_ASSERT(psa_aead_encrypt_setup(&operation, key, alg));
|
||||||
|
|
||||||
if (operation.alg == PSA_ALG_GCM) {
|
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);
|
psa_aead_abort(&operation);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Test for calling set lengths with a plaintext length of SIZE_MAX, after setting nonce */
|
/* Test for calling set lengths with a plaintext length of SIZE_MAX, after setting nonce */
|
||||||
PSA_ASSERT(psa_aead_encrypt_setup(&operation, key, alg));
|
PSA_ASSERT(psa_aead_encrypt_setup(&operation, key, alg));
|
||||||
|
Reference in New Issue
Block a user