Commit 8ba6d1b0 authored by Geoff Thorpe's avatar Geoff Thorpe
Browse files

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

BN_mod_exp. Call the regular atalla mod_exp operation instead.
parent 1c4f90a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */