Rework BN_exp() a bit
authortb <tb@openbsd.org>
Thu, 30 Mar 2023 14:21:10 +0000 (14:21 +0000)
committertb <tb@openbsd.org>
Thu, 30 Mar 2023 14:21:10 +0000 (14:21 +0000)
commit8eb14e88c92da3bec2a523de39fca075a652b8f0
tree17255761842e9dfd5de2d6a841e123d0ff749e32
parentb9010a5ccb5fe31bc3b6ffa81d44ed8aa2032b6a
Rework BN_exp() a bit

This mostly only cleans up the mess that it was - which doesn't stand out
because of the horror that lurks in the rest of this file. It avoids
copying the partial calculation out on error and does away with some
other weirdness.

with/ok jsing
lib/libcrypto/bn/bn_exp.c