Invert BN_BITS2 handling in bn_bin2bn_cbs() and bn_hex2bn_cbs().
authorjsing <jsing@openbsd.org>
Tue, 16 Apr 2024 13:14:46 +0000 (13:14 +0000)
committerjsing <jsing@openbsd.org>
Tue, 16 Apr 2024 13:14:46 +0000 (13:14 +0000)
commit6895ff70056c42ea7a70a63f7cacaf30c053e98a
tree601a5aa0ded2cc7afcea4c9142b52dbd04a7b948
parentbe929329cb0f34616ea6749c0fb406a4834035b0
Invert BN_BITS2 handling in bn_bin2bn_cbs() and bn_hex2bn_cbs().

This results in simpler code.

Suggested by tb@ during review.
lib/libcrypto/bn/bn_convert.c