Lines Matching refs:modulus
147 static int fieldSub(const uint32_t *x, const uint32_t *y, const uint32_t *modulus, uint32_t *result… in fieldSub() argument
151 add(result, modulus, tempas, arrayLength); in fieldSub()
333 static int fieldAddAndDivide(const uint32_t *x, const uint32_t *modulus, const uint32_t *reducer, u… in fieldAddAndDivide() argument
334 uint32_t n = add(x, modulus, result, arrayLength); in fieldAddAndDivide()
338 if (isGreater(result, modulus, arrayLength) == 1) in fieldAddAndDivide()
353 static void fieldInv(const uint32_t *A, const uint32_t *modulus, const uint32_t *reducer, uint32_t … in fieldInv() argument
364 copy(modulus,v,arrayLength); in fieldInv()
375 fieldAddAndDivide(x1,modulus,reducer,tempm); /* tempm=x1+p */ in fieldInv()
386 fieldAddAndDivide(x2,modulus,reducer,tempm); /* tempm=x1+p */ in fieldInv()
395 fieldSub(x1,x2,modulus,tempm); /* tempm=x1-x2 */ in fieldInv()
400 fieldSub(x2,x1,modulus,tempm); /* tempm=x2-x1 */ in fieldInv()
653 int ecc_fieldSub(const uint32_t *x, const uint32_t *y, const uint32_t *modulus, uint32_t *result) in ecc_fieldSub() argument
655 return fieldSub(x, y, modulus, result); in ecc_fieldSub()
669 void ecc_fieldInv(const uint32_t *A, const uint32_t *modulus, const uint32_t *reducer, uint32_t *B) in ecc_fieldInv() argument
671 fieldInv(A, modulus, reducer, B); in ecc_fieldInv()