The atalla functionality doesn't work with the "word" version of

BN_mod_exp. Call the regular atalla mod_exp operation instead.
This commit is contained in:
Geoff Thorpe 2000-06-13 13:18:51 +00:00
parent 1c4f90a05d
commit 8ba6d1b0cc

View File

@ -691,7 +691,7 @@ int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
if (!tried_atalla)
{
BN_set_word(t, a);
if (BN_mod_exp_word_atalla(rr, t, p, m))
if (BN_mod_exp_atalla(rr, t, p, m))
return 1;
}
/* If it fails, try the other methods */