Add ossl_bn_priv_rand_range_fixed_top() and use it for EC/DSA
authorTomas Mraz <tomas@openssl.org>
Thu, 25 Apr 2024 17:26:08 +0000 (19:26 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 May 2024 07:16:36 +0000 (09:16 +0200)
commit13b3ca5c998e6db4f7251a56c43541cb1a422bd0
tree788f2653f7a71314fc32edb5e515be2c7d06e1bc
parent2d285fa873028f6cff9484a0cdf690fe05d7fb16
Add ossl_bn_priv_rand_range_fixed_top() and use it for EC/DSA

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24265)
crypto/bn/bn_rand.c
crypto/dsa/dsa_ossl.c
crypto/ec/ecdsa_ossl.c
include/crypto/bn.h