diff options
author | Felix Laurie von Massenbach <felix@erbridge.co.uk> | 2014-05-27 14:48:21 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-06-01 15:31:27 +0100 |
commit | 8927c2786d25c90566a2e7eb96b25b2c0a3ae4ab (patch) | |
tree | 4bd95e6332e256ba48c2b7120ec73e11e74b5726 /crypto/bn/bn_prime.c | |
parent | 9a3a99748b75d9656467e28de569bd03bf3edd8f (diff) | |
download | openssl-8927c2786d25c90566a2e7eb96b25b2c0a3ae4ab.tar.gz |
Add a test to check we're really generating probable primes.
Diffstat (limited to 'crypto/bn/bn_prime.c')
-rw-r--r-- | crypto/bn/bn_prime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c index 093ebee3ad..ff00b903a4 100644 --- a/crypto/bn/bn_prime.c +++ b/crypto/bn/bn_prime.c @@ -458,12 +458,12 @@ loop: goto loop; } } - ret=1; + ret = 1; err: BN_CTX_end(ctx); bn_check_top(rnd); - return(ret); + return ret; } static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1, |