205
194
if (!BN_sub_word(t, 1)) goto end;
208
if (!BN_mod_mul(x, a, b, p, ctx)) goto end;
197
if (!BN_mod_mul(x, A, b, p, ctx)) goto end;
209
198
if (!BN_mod_mul(x, x, t, p, ctx)) goto end;
211
200
if (!BN_copy(ret, x)) goto end;
216
205
/* e > 2, so we really have to use the Tonelli/Shanks algorithm.