Make several calls to BN_nnmod() unconditional
authortb <tb@openbsd.org>
Sun, 26 Mar 2023 18:52:29 +0000 (18:52 +0000)
committertb <tb@openbsd.org>
Sun, 26 Mar 2023 18:52:29 +0000 (18:52 +0000)
commit89208a70bc91464621638ce210355456cee05248
tree22ba0300a54789cb1f7028fcf842148138b69ad3
parent416d67b76dc50ff6a462f904cb1e1d436a5be76b
Make several calls to BN_nnmod() unconditional

This removes a potential branch in a sensitive function and makes the
code a lot simpler. It is a really bad idea optimize here for what
davidben aptly calls "calculator" purposes.

ok jsing
lib/libcrypto/bn/bn_exp.c