Simplify things by switching to bn_rand_interval()
authortb <tb@openbsd.org>
Sun, 2 Jul 2023 12:25:33 +0000 (12:25 +0000)
committertb <tb@openbsd.org>
Sun, 2 Jul 2023 12:25:33 +0000 (12:25 +0000)
commit21beb5cf872e9adb237d0468c31364950c945767
tree04da20084633bc3c0c77c1f782743f818efd111a
parentae19a113fa07285c76f0ae73bcab2b018fccdd1e
Simplify things by switching to bn_rand_interval()

This avoids some silly dances in ECDSA signature generation by replacing
them with a single API call. Also garbage collect the now unnecessary
range.

ok beck jsing
lib/libcrypto/ecdsa/ecs_ossl.c