diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index b4c84a05c9..aca2ee68fd 100644 --- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_mod_exp.c,v 1.10 2022/12/05 00:24:44 tb Exp $ */ | 1 | /* $OpenBSD: bn_mod_exp.c,v 1.11 2022/12/08 07:18:47 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -162,15 +162,15 @@ main(int argc, char *argv[]) | |||
| 162 | goto err; | 162 | goto err; |
| 163 | 163 | ||
| 164 | for (i = 0; i < 200; i++) { | 164 | for (i = 0; i < 200; i++) { |
| 165 | c = (arc4random() % BN_BITS) - BN_BITS2; | 165 | c = arc4random() % BN_BITS - BN_BITS2; |
| 166 | if (!BN_rand(a, NUM_BITS + c, 0, 0)) | 166 | if (!BN_rand(a, NUM_BITS + c, 0, 0)) |
| 167 | goto err; | 167 | goto err; |
| 168 | 168 | ||
| 169 | c = (arc4random() % BN_BITS) - BN_BITS2; | 169 | c = arc4random() % BN_BITS - BN_BITS2; |
| 170 | if (!BN_rand(b, NUM_BITS + c, 0, 0)) | 170 | if (!BN_rand(b, NUM_BITS + c, 0, 0)) |
| 171 | goto err; | 171 | goto err; |
| 172 | 172 | ||
| 173 | c = (arc4random() % BN_BITS) - BN_BITS2; | 173 | c = arc4random() % BN_BITS - BN_BITS2; |
| 174 | if (!BN_rand(m, NUM_BITS + c, 0, 1)) | 174 | if (!BN_rand(m, NUM_BITS + c, 0, 1)) |
| 175 | goto err; | 175 | goto err; |
| 176 | 176 | ||
