Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklonga committed Jun 7, 2021
1 parent 9eaeab4 commit bcea207
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_sike.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#endif


int cryptotest_kem()
int cryptotest_kem(int iterations)
{ // Testing KEM
unsigned int i;
unsigned char sk[CRYPTO_SECRETKEYBYTES] = {0};
Expand Down Expand Up @@ -138,15 +138,15 @@ int main(int argc, char **argv)
{
int Status = PASSED;

Status = cryptotest_kem(SYSTEM_NAME, TEST_LOOPS); // Test key encapsulation mechanism
Status = cryptotest_kem(TEST_LOOPS); // Test key encapsulation mechanism
if (Status != PASSED) {
printf("\n\n Error detected: KEM_ERROR_SHARED_KEY \n\n");
return FAILED;
}

if ((argc > 1) && (strcmp("nobench", argv[1]) == 0)) {}
else {
Status = cryptorun_kem(); // Benchmark key encapsulation mechanism
Status = cryptorun_kem(); // Benchmark key encapsulation mechanism
if (Status != PASSED) {
printf("\n\n Error detected: KEM_ERROR_SHARED_KEY \n\n");
return FAILED;
Expand Down

0 comments on commit bcea207

Please sign in to comment.