Lines Matching refs:SECP256r1_p
45 const p256_int SECP256r1_p = // curve field size
343 if (p256_cmp(&SECP256r1_p, x) <= 0 ||
344 p256_cmp(&SECP256r1_p, y) <= 0 ||
348 p256_modmul(&SECP256r1_p, y, 0, y, &y2); // y^2
350 p256_modmul(&SECP256r1_p, x, 0, x, &x3); // x^2
351 p256_modmul(&SECP256r1_p, x, 0, &x3, &x3); // x^3
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);