mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-26 11:37:09 +00:00
Fix typo in test_suite_common
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
e7cd137606
commit
3172e4e1c9
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user