Greatly simplify bn_expand_internal().
authorjsing <jsing@openbsd.org>
Sat, 14 Jan 2023 15:12:27 +0000 (15:12 +0000)
committerjsing <jsing@openbsd.org>
Sat, 14 Jan 2023 15:12:27 +0000 (15:12 +0000)
commit8d6b24b57ad1132c96e80deebf2147331dcef5eb
treee4f8b70b44e12fcae4185c0fd785e4a768e3c2e7
parent938302ac4bd8e75dcc20614eda4d5d47cba34f1e
Greatly simplify bn_expand_internal().

We have a function called recallocarray() - make use of it rather than
handrolling a version of it. Also have bn_expand() call bn_wexpand(),
which avoids some duplication.

ok tb@
lib/libcrypto/bn/bn_lib.c