Move reduction step from BN_mod_exp to BN_mod_exp_mont_word.
authorBodo Möller <bodo@openssl.org>
Thu, 30 Nov 2000 09:45:26 +0000 (09:45 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 30 Nov 2000 09:45:26 +0000 (09:45 +0000)
commit25439b76adb66fe0ce6e012a9af1e1ce969a1479
treeb7e18886eaeb9d96b00b6037fe61ad21e1a9f692
parent3465dd3853f000e042dc3fd26f4ce03cd92374ad
Move reduction step from BN_mod_exp to BN_mod_exp_mont_word.
Fix BN_mod_exp_simple for a==0 (mod m).
Skip useless round in BN_mod_sqrt (1 is always a square, no need
to test BN_kronecker for it).
crypto/bn/bn_exp.c
crypto/bn/bn_sqrt.c