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 bcea207 commit ab287ff
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 iterations)
int cryptotest_kem()
{ // 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(TEST_LOOPS); // Test key encapsulation mechanism
Status = cryptotest_kem(); // 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 ab287ff

Please sign in to comment.