improve rsa_test a bit

This commit is contained in:
Steffen Jaeckel 2017-10-02 01:18:19 +02:00
parent 67f9064b71
commit c702ac6f1c

View File

@ -340,7 +340,7 @@ static int _rsa_issue_301(int prng_idx)
rsa_free(&key_in); rsa_free(&key_in);
rsa_free(&key); rsa_free(&key);
return 0; return CRYPT_OK;
} }
int rsa_test(void) int rsa_test(void)
@ -366,9 +366,7 @@ int rsa_test(void)
return 1; return 1;
} }
if (_rsa_issue_301(prng_idx) != 0) { DO(_rsa_issue_301(prng_idx));
return 1;
}
/* make 10 random key */ /* make 10 random key */
for (cnt = 0; cnt < 10; cnt++) { for (cnt = 0; cnt < 10; cnt++) {