From 3172e4e1c992ebdab7552fe822b2f35c6b5a83b8 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Wed, 23 Nov 2022 19:38:13 +0000 Subject: [PATCH] Fix typo in test_suite_common Signed-off-by: Dave Rodgman --- tests/suites/test_suite_common.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_common.function b/tests/suites/test_suite_common.function index 6c0d4afc4d..c8a7a52abc 100644 --- a/tests/suites/test_suite_common.function +++ b/tests/suites/test_suite_common.function @@ -74,9 +74,9 @@ void mbedtls_xor( int len ) int r_off = i & 1, a_off = (i & 2) >> 1, b_off = (i & 4) >> 2; fill_arrays( a, b, r1, r2, n + 1 ); - for ( size_t i = 0; i < n; i++ ) + for ( size_t j = 0; j < n; j++ ) { - r1[i + r_off] = a[i + a_off] ^ b[i + b_off]; + r1[j + r_off] = a[j + a_off] ^ b[j + b_off]; } mbedtls_xor( r2 + r_off, a + a_off, b + b_off, n ); ASSERT_COMPARE( r1 + r_off, n, r2 + r_off, n );