diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-09 05:38:12 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-09 05:38:12 +0000 |
commit | 8e570acf08180c565e84a3b76068671b6b5f3196 (patch) | |
tree | 053649920556dc7dafa5897030102ac5effdb62c /regress/lib | |
parent | ab6a0a8fc329e93aa45aa7c87256a4afb73a749b (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