From 48652f081125130a0dda11ae5ed3e7d215585273 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Thu, 7 Dec 2023 08:41:08 +0000 Subject: [PATCH] Adjust test iterations Signed-off-by: Dave Rodgman --- tests/suites/test_suite_constant_time_hmac.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_constant_time_hmac.function b/tests/suites/test_suite_constant_time_hmac.function index c311c2bcdd..109cbce0a0 100644 --- a/tests/suites/test_suite_constant_time_hmac.function +++ b/tests/suites/test_suite_constant_time_hmac.function @@ -83,10 +83,10 @@ void ssl_cf_hmac(int hash) * by at least one block size. * * It is quite expensive to test all possible lengths, so we test values - * which are within 1 of a multiple of 64, plus loop end values. + * which are within 1 of a multiple of block_size, plus loop end values. */ for (max_in_len = 0; max_in_len <= 255 + block_size; max_in_len++) { - int no_skip = (((max_in_len + 65) % 64) < 3) || + int no_skip = (((max_in_len + block_size + 1) % block_size) < 3) || (max_in_len >= ((255 + block_size) - 1)); if (!no_skip) { continue;