Skip to content

Commit c702ac6

Browse files
committed
improve rsa_test a bit
1 parent 67f9064 commit c702ac6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/rsa_test.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static int _rsa_issue_301(int prng_idx)
340340
rsa_free(&key_in);
341341

342342
rsa_free(&key);
343-
return 0;
343+
return CRYPT_OK;
344344
}
345345

346346
int rsa_test(void)
@@ -366,9 +366,7 @@ int rsa_test(void)
366366
return 1;
367367
}
368368

369-
if (_rsa_issue_301(prng_idx) != 0) {
370-
return 1;
371-
}
369+
DO(_rsa_issue_301(prng_idx));
372370

373371
/* make 10 random key */
374372
for (cnt = 0; cnt < 10; cnt++) {

0 commit comments

Comments
 (0)