diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_rand.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_rand.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_rand.c b/src/lib/libcrypto/bn/bn_rand.c index a03d70053b..f68913473f 100644 --- a/src/lib/libcrypto/bn/bn_rand.c +++ b/src/lib/libcrypto/bn/bn_rand.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_rand.c,v 1.27 2022/11/26 16:08:51 tb Exp $ */ | 1 | /* $OpenBSD: bn_rand.c,v 1.28 2023/07/08 12:21:58 beck 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 | * |
@@ -198,12 +198,14 @@ BN_rand(BIGNUM *rnd, int bits, int top, int bottom) | |||
198 | { | 198 | { |
199 | return bnrand(0, rnd, bits, top, bottom); | 199 | return bnrand(0, rnd, bits, top, bottom); |
200 | } | 200 | } |
201 | LCRYPTO_ALIAS(BN_rand); | ||
201 | 202 | ||
202 | int | 203 | int |
203 | BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) | 204 | BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) |
204 | { | 205 | { |
205 | return bnrand(1, rnd, bits, top, bottom); | 206 | return bnrand(1, rnd, bits, top, bottom); |
206 | } | 207 | } |
208 | LCRYPTO_ALIAS(BN_pseudo_rand); | ||
207 | 209 | ||
208 | #if 1 | 210 | #if 1 |
209 | int | 211 | int |
@@ -279,6 +281,7 @@ BN_rand_range(BIGNUM *r, const BIGNUM *range) | |||
279 | { | 281 | { |
280 | return bn_rand_range(0, r, range); | 282 | return bn_rand_range(0, r, range); |
281 | } | 283 | } |
284 | LCRYPTO_ALIAS(BN_rand_range); | ||
282 | 285 | ||
283 | int | 286 | int |
284 | bn_rand_interval(BIGNUM *rnd, const BIGNUM *lower_inc, const BIGNUM *upper_exc) | 287 | bn_rand_interval(BIGNUM *rnd, const BIGNUM *lower_inc, const BIGNUM *upper_exc) |
@@ -312,3 +315,4 @@ BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range) | |||
312 | { | 315 | { |
313 | return bn_rand_range(1, r, range); | 316 | return bn_rand_range(1, r, range); |
314 | } | 317 | } |
318 | LCRYPTO_ALIAS(BN_pseudo_rand_range); | ||