Fix ASAN error in test

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2024-01-16 16:27:34 +00:00
parent 9f97566c04
commit b7778b2388

View file

@ -159,7 +159,7 @@ void aes_encrypt_ctr_multipart(int length, int step_size)
mbedtls_test_rnd_std_rand(NULL, key, sizeof(key));
// random input
mbedtls_test_rnd_std_rand(NULL, input, sizeof(input));
mbedtls_test_rnd_std_rand(NULL, input, length);
// complete encryption in one call