Browse Source

improve rsa_test a bit

Steffen Jaeckel 8 years ago
parent
commit
c702ac6f1c
1 changed files with 2 additions and 4 deletions
  1. 2 4
      tests/rsa_test.c

+ 2 - 4
tests/rsa_test.c

@@ -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) {
-      return 1;
-   }
+   DO(_rsa_issue_301(prng_idx));
 
 
    /* make 10 random key */
    /* make 10 random key */
    for (cnt = 0; cnt < 10; cnt++) {
    for (cnt = 0; cnt < 10; cnt++) {