]> git.ipfire.org Git - thirdparty/openssl.git/commit
[refactor] BIGNUM: collapse BN_bin2bn() and BN_lebin2bn() into one
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Nov 2021 06:10:13 +0000 (07:10 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Jan 2022 16:57:38 +0000 (17:57 +0100)
commitc2cab43574dbb65094d6caf4dc1bf691e826a4fc
tree5fd5286fdeb62ce60ece88bab877b94f753d1c3a
parent2d280fe016a98b57d488f42fd3941bcd61407c5a
[refactor] BIGNUM: collapse BN_bin2bn() and BN_lebin2bn() into one

BN_lebin2bn() is a block copy of BN_bin2bn() with just a couple of
very minute details changed.  For better maintainability, we collapse
them into the internal function bn2bin(), and change BN_bin2bn() and
BN_lebin2bn() to become simple wrappers.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17139)
crypto/bn/bn_lib.c