From c702ac6f1c7a17e0e14ea36d09ac9f3d9dbcf041 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 2 Oct 2017 01:18:19 +0200 Subject: [PATCH] improve rsa_test a bit --- tests/rsa_test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/rsa_test.c b/tests/rsa_test.c index 5125204..44fa1d0 100644 --- a/tests/rsa_test.c +++ b/tests/rsa_test.c @@ -340,7 +340,7 @@ static int _rsa_issue_301(int prng_idx) rsa_free(&key_in); rsa_free(&key); - return 0; + return CRYPT_OK; } int rsa_test(void) @@ -366,9 +366,7 @@ int rsa_test(void) return 1; } - if (_rsa_issue_301(prng_idx) != 0) { - return 1; - } + DO(_rsa_issue_301(prng_idx)); /* make 10 random key */ for (cnt = 0; cnt < 10; cnt++) {