summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_rand.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2024-04-25 15:35:36 +0200
committerTomas Mraz <tomas@openssl.org>2024-05-09 09:32:02 +0200
commit5dbb2a8ca2c1ba42dfb9445b5ea76adccbdb9744 (patch)
treec1dcb1e684f72333a0a1d35e12061c2fb66cfdf1 /crypto/bn/bn_rand.c
parent0df711a25da6e99a7ce0dbaf992acb644252385f (diff)
Add ossl_bn_is_word_fixed_top()
Also correct some BN_FLG_FIXED_TOP flag handling. Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (cherry picked from commit 2d285fa873028f6cff9484a0cdf690fe05d7fb16) (Merged from https://github.com/openssl/openssl/pull/24317)
Diffstat (limited to 'crypto/bn/bn_rand.c')
-rw-r--r--crypto/bn/bn_rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c
index fb3d7057df..b0b3d3ffe2 100644
--- a/crypto/bn/bn_rand.c
+++ b/crypto/bn/bn_rand.c
@@ -322,7 +322,7 @@ int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,
goto end;
/* Clear out the top bits and rejection filter into range */
- BN_set_flags(out, BN_FLG_CONSTTIME | BN_FLG_FIXED_TOP);
+ BN_set_flags(out, BN_FLG_CONSTTIME);
ossl_bn_mask_bits_fixed_top(out, BN_num_bits(range));
if (BN_ucmp(out, range) < 0) {