CVSROOT: /cvs Module name: src Changes by: [email protected] 2023/05/08 23:38:11
Modified files:
lib/libcrypto/bn: bn_exp.c
Log message:
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)
