diff --git a/tests/suites/test_suite_aes.function b/tests/suites/test_suite_aes.function index 7b1306a82..9118a9865 100644 --- a/tests/suites/test_suite_aes.function +++ b/tests/suites/test_suite_aes.function @@ -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