Lines Matching defs:mont
129 BN_MONT_CTX *mont = NULL;
159 mont = in_mont;
161 if ((mont = BN_MONT_CTX_new()) == NULL)
163 if (!BN_MONT_CTX_set(mont, m, ctx))
185 if (!BN_to_montgomery(val1[0], a_mod_m, mont, ctx))
188 if (!BN_mod_mul_montgomery(d, val1[0], val1[0], mont, ctx))
194 !BN_mod_mul_montgomery(val1[i], val1[i - 1], d, mont, ctx))
213 if (!BN_to_montgomery(val2[0], a_mod_m, mont, ctx))
216 if (!BN_mod_mul_montgomery(d, val2[0], val2[0], mont, ctx))
222 !BN_mod_mul_montgomery(val2[i], val2[i - 1], d, mont, ctx))
236 if (!BN_to_montgomery(r, BN_value_one(), mont, ctx))
240 if (!BN_mod_mul_montgomery(r, r, r, mont, ctx))
280 if (!BN_mod_mul_montgomery(r, r, val1[wvalue1 >> 1], mont, ctx))
288 if (!BN_mod_mul_montgomery(r, r, val2[wvalue2 >> 1], mont, ctx))
294 if (!BN_from_montgomery(rr, r, mont, ctx))
298 if ((in_mont == NULL) && (mont != NULL))
299 BN_MONT_CTX_free(mont);