Lines Matching refs:fieldSub
147 static int fieldSub(const uint32_t *x, const uint32_t *y, const uint32_t *modulus, uint32_t *result… in fieldSub() function
225 fieldSub(A,tempm,ecc_prime_m,tempm2); in fieldModP()
232 fieldSub(tempm2,tempm,ecc_prime_m,A); in fieldModP()
239 fieldSub(A,tempm,ecc_prime_m,tempm2); in fieldModP()
247 fieldSub(tempm2,tempm,ecc_prime_m,A); in fieldModP()
249 fieldSub(A, ecc_prime_m, ecc_prime_m, tempm); in fieldModP()
395 fieldSub(x1,x2,modulus,tempm); /* tempm=x1-x2 */ in fieldInv()
400 fieldSub(x2,x1,modulus,tempm); /* tempm=x2-x1 */ in fieldInv()
427 fieldSub(tempA, tempB, ecc_prime_m, tempC); //tempC = (qx^2-1) in ec_double()
438 fieldSub(tempC, px, ecc_prime_m, tempA); //lambda^2 - Px in ec_double()
439 fieldSub(tempA, px, ecc_prime_m, Dx); //lambda^2 - Px - Qx in ec_double()
441 fieldSub(px, Dx, ecc_prime_m, tempA); //tempA = qx-dx in ec_double()
444 fieldSub(tempC, py, ecc_prime_m, Dy); //Dy = lambda * (qx-dx) - px in ec_double()
474 fieldSub(py, qy, ecc_prime_m, tempA); in ec_add()
475 fieldSub(px, qx, ecc_prime_m, tempB); in ec_add()
482 fieldSub(tempA, px, ecc_prime_m, tempB); //lambda^2 - Px in ec_add()
483 fieldSub(tempB, qx, ecc_prime_m, Sx); //lambda^2 - Px - Qx in ec_add()
485 fieldSub(qx, Sx, ecc_prime_m, tempB); in ec_add()
488 fieldSub(tempC, qy, ecc_prime_m, Sy); in ec_add()
655 return fieldSub(x, y, modulus, result); in ecc_fieldSub()