Skip to content

Commit

Permalink
Fix the constant time 64 test
Browse files Browse the repository at this point in the history
We were adding more tests than we had data for due to use of
sizeof instead of OSSL_NELEM. I also changed the 8 bit tests
for consistency, although they were already working.

Reviewed-by: Rich Salz <[email protected]>
(Merged from openssl#3755)
  • Loading branch information
mattcaswell committed Jun 23, 2017
1 parent 019e47c commit e390850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/constant_time_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,6 @@ void register_tests(void)
ADD_TEST(test_sizeofs);
ADD_ALL_TESTS(test_binops, OSSL_NELEM(test_values));
ADD_ALL_TESTS(test_signed, OSSL_NELEM(signed_test_values));
ADD_ALL_TESTS(test_8values, sizeof(test_values_8));
ADD_ALL_TESTS(test_64values, sizeof(test_values_64));
ADD_ALL_TESTS(test_8values, OSSL_NELEM(test_values_8));
ADD_ALL_TESTS(test_64values, OSSL_NELEM(test_values_64));
}

0 comments on commit e390850

Please sign in to comment.