summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-05-09 05:38:12 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-05-09 05:38:12 +0000
commit8e570acf08180c565e84a3b76068671b6b5f3196 (patch)
tree053649920556dc7dafa5897030102ac5effdb62c /regress/lib
parentab6a0a8fc329e93aa45aa7c87256a4afb73a749b (diff)
bn_exp: also special case -1 modulus
Anything taken to the power of 0 is 1, and then reduced mod 1 or mod -1 it will be 0. If "anything" includes 0 or not is a matter of convention, but it should not depend on the sign of the modulus... Reported by Guido Vranken ok jsing (who had the same diff)
Diffstat (limited to 'regress/lib')
0 files changed, 0 insertions, 0 deletions