Pull BIGNUM constants out of get_* function bodies
authortb <tb@openbsd.org>
Mon, 10 Jul 2023 03:26:30 +0000 (03:26 +0000)
committertb <tb@openbsd.org>
Mon, 10 Jul 2023 03:26:30 +0000 (03:26 +0000)
commitb77e9104c2fec1a37e7bda199a693c2b238fd8bb
treea65e417afa1acd8e503813c8bb93a6b41bba788c
parent33d8540c847cab96afb52bd048ee6ab378530074
Pull BIGNUM constants out of get_* function bodies

The get_rfc*_prime_* functions will be removed. The constants will remain
for the BN_get_rfc*_prime_* functions. Make the latter call BN_bin2bn()
directly on these constants rather than going through get_*. This avoids
some overlong lines. Also KNF for some comments.

Reduces the diff I currently carry by quite a bit.
lib/libcrypto/bn/bn_const.c