Lines Matching refs:modp
134 DWORD *modp; in multiprecision_lshift_mod() local
138 modp = curve.p; in multiprecision_lshift_mod()
142 modp = curve_p256.p; in multiprecision_lshift_mod()
150 multiprecision_sub(c, c, modp, keyLength); in multiprecision_lshift_mod()
152 else if (multiprecision_compare(c, modp, keyLength)>=0) in multiprecision_lshift_mod()
154 multiprecision_sub(c, c, modp, keyLength); in multiprecision_lshift_mod()
202 DWORD *modp; in multiprecision_add_mod() local
206 modp = curve.p; in multiprecision_add_mod()
210 modp = curve_p256.p; in multiprecision_add_mod()
218 multiprecision_sub(c, c, modp, keyLength); in multiprecision_add_mod()
220 else if (multiprecision_compare(c, modp, keyLength) >= 0) in multiprecision_add_mod()
222 multiprecision_sub(c, c, modp, keyLength); in multiprecision_add_mod()
230 DWORD *modp; in multiprecision_sub_mod() local
234 modp = curve.p; in multiprecision_sub_mod()
238 modp = curve_p256.p; in multiprecision_sub_mod()
245 multiprecision_add(c, c, modp, keyLength); in multiprecision_sub_mod()
303 DWORD *modp = curve.p; in multiprecision_fast_mod() local
366 multiprecision_sub(c, c, modp, KEY_LENGTH_DWORDS_P192); in multiprecision_fast_mod()
368 else if(multiprecision_compare(c, modp, KEY_LENGTH_DWORDS_P192) >= 0) in multiprecision_fast_mod()
370 multiprecision_sub(c, c, modp, KEY_LENGTH_DWORDS_P192); in multiprecision_fast_mod()
391 DWORD *modp = curve_p256.p; in multiprecision_fast_mod_P256() local
618 multiprecision_add(c, c, modp, KEY_LENGTH_DWORDS_P256); in multiprecision_fast_mod_P256()
626 multiprecision_sub(c, c, modp, KEY_LENGTH_DWORDS_P256); in multiprecision_fast_mod_P256()
631 if (multiprecision_compare(c, modp, KEY_LENGTH_DWORDS_P256)>=0) in multiprecision_fast_mod_P256()
632 multiprecision_sub(c, c, modp, KEY_LENGTH_DWORDS_P256); in multiprecision_fast_mod_P256()
641 DWORD *modp; in multiprecision_inv_mod() local
645 modp = curve_p256.p; in multiprecision_inv_mod()
649 modp = curve.p; in multiprecision_inv_mod()
652 multiprecision_copy(v, modp, keyLength); in multiprecision_inv_mod()
666 A[keyLength]=multiprecision_add(A, A, modp, keyLength); // A =A+p in multiprecision_inv_mod()
681 C[keyLength] = multiprecision_add(C, C, modp, keyLength); // C =C+p in multiprecision_inv_mod()
699 if (multiprecision_compare(C, modp, keyLength) >= 0) in multiprecision_inv_mod()
700 multiprecision_sub(aminus, C, modp, keyLength); in multiprecision_inv_mod()