Home
last modified time | relevance | path

Searched refs:SECP256r1_p (Results 1 – 3 of 3) sorted by relevance

/system/core/libmincrypt/
Dp256.c45 const p256_int SECP256r1_p = // curve field size variable
343 if (p256_cmp(&SECP256r1_p, x) <= 0 || in p256_is_valid_point()
344 p256_cmp(&SECP256r1_p, y) <= 0 || in p256_is_valid_point()
348 p256_modmul(&SECP256r1_p, y, 0, y, &y2); // y^2 in p256_is_valid_point()
350 p256_modmul(&SECP256r1_p, x, 0, x, &x3); // x^2 in p256_is_valid_point()
351 p256_modmul(&SECP256r1_p, x, 0, &x3, &x3); // x^3 in p256_is_valid_point()
352 if (p256_sub(&x3, x, &x3)) p256_add(&x3, &SECP256r1_p, &x3); // x^3 - x in p256_is_valid_point()
353 if (p256_sub(&x3, x, &x3)) p256_add(&x3, &SECP256r1_p, &x3); // x^3 - 2x in p256_is_valid_point()
354 if (p256_sub(&x3, x, &x3)) p256_add(&x3, &SECP256r1_p, &x3); // x^3 - 3x in p256_is_valid_point()
356 p256_sub(&x3, &SECP256r1_p, &x3); in p256_is_valid_point()
Dp256_ec.c1184 p256_modmul(&SECP256r1_p, in, 0, &kR, &in_shifted); in to_montgomery()
1217 p256_modmul(&SECP256r1_p, &kRInv, top, &result, out); in from_montgomery()
/system/core/include/mincrypt/
Dp256.h55 extern const p256_int SECP256r1_p; // Curve prime