Home | History | Annotate | Download | only in libconstrainedcrypto

Lines Matching refs:p256_sub

252 int p256_sub(const p256_int* a, const p256_int* b, p256_int* c) {
317 if (!p256_sub(&V, &U, NULL)) {
318 p256_sub(&V, &U, &V);
319 if (p256_sub(&S, &R, &S)) p256_add(&S, MOD, &S);
322 p256_sub(&U, &V, &U);
323 if (p256_sub(&R, &S, &R)) p256_add(&R, MOD, &R);
352 if (p256_sub(&x3, x, &x3)) p256_add(&x3, &SECP256r1_p, &x3); // x^3 - x
353 if (p256_sub(&x3, x, &x3)) p256_add(&x3, &SECP256r1_p, &x3); // x^3 - 2x
354 if (p256_sub(&x3, x, &x3)) p256_add(&x3, &SECP256r1_p, &x3); // x^3 - 3x
356 p256_sub(&x3, &SECP256r1_p, &x3);