Lines Matching refs:am
621 BIGNUM tmp, am; in BN_mod_exp_mont_consttime() local
759 am.d = tmp.d + top; in BN_mod_exp_mont_consttime()
760 tmp.top = am.top = 0; in BN_mod_exp_mont_consttime()
761 tmp.dmax = am.dmax = top; in BN_mod_exp_mont_consttime()
762 tmp.neg = am.neg = 0; in BN_mod_exp_mont_consttime()
763 tmp.flags = am.flags = BN_FLG_STATIC_DATA; in BN_mod_exp_mont_consttime()
779 if (!bn_to_mont_fixed_top(&am, a, mont, ctx)) in BN_mod_exp_mont_consttime()
851 for (i = am.top; i < top; i++) in BN_mod_exp_mont_consttime()
852 am.d[i] = 0; in BN_mod_exp_mont_consttime()
857 bn_flip_n_scatter5_t4(am.d, top, powerbuf, 1); in BN_mod_exp_mont_consttime()
858 if (!(*mul_worker) (tmp.d, am.d, am.d, np, n0) && in BN_mod_exp_mont_consttime()
859 !(*mul_worker) (tmp.d, am.d, am.d, np, n0)) in BN_mod_exp_mont_consttime()
860 bn_mul_mont_vis3(tmp.d, am.d, am.d, np, n0, top); in BN_mod_exp_mont_consttime()
865 if (!(*mul_worker) (tmp.d, tmp.d, am.d, np, n0) && in BN_mod_exp_mont_consttime()
866 !(*mul_worker) (tmp.d, tmp.d, am.d, np, n0)) in BN_mod_exp_mont_consttime()
867 bn_mul_mont_vis3(tmp.d, tmp.d, am.d, np, n0, top); in BN_mod_exp_mont_consttime()
960 for (i = am.top; i < top; i++) in BN_mod_exp_mont_consttime()
961 am.d[i] = 0; in BN_mod_exp_mont_consttime()
968 for (np = am.d + top, i = 0; i < top; i++) in BN_mod_exp_mont_consttime()
972 bn_scatter5(am.d, am.top, powerbuf, 1); in BN_mod_exp_mont_consttime()
973 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top); in BN_mod_exp_mont_consttime()
979 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1); in BN_mod_exp_mont_consttime()
990 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1); in BN_mod_exp_mont_consttime()
998 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1); in BN_mod_exp_mont_consttime()
1004 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1); in BN_mod_exp_mont_consttime()
1059 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(&am, top, powerbuf, 1, window)) in BN_mod_exp_mont_consttime()
1069 if (!bn_mul_mont_fixed_top(&tmp, &am, &am, mont, ctx)) in BN_mod_exp_mont_consttime()
1076 if (!bn_mul_mont_fixed_top(&tmp, &am, &tmp, mont, ctx)) in BN_mod_exp_mont_consttime()
1125 if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(&am, top, powerbuf, wvalue, in BN_mod_exp_mont_consttime()
1130 if (!bn_mul_mont_fixed_top(&tmp, &tmp, &am, mont, ctx)) in BN_mod_exp_mont_consttime()
1142 am.d[0] = 1; /* borrow am */ in BN_mod_exp_mont_consttime()
1144 am.d[i] = 0; in BN_mod_exp_mont_consttime()
1145 if (!BN_mod_mul_montgomery(rr, &tmp, &am, mont, ctx)) in BN_mod_exp_mont_consttime()