Home
last modified time | relevance | path

Searched refs:p256_add (Results 1 – 2 of 2) sorted by relevance

/system/core/libmincrypt/
Dp256.c265 int p256_add(const p256_int* a, const p256_int* b, p256_int* c) { in p256_add() function
306 p256_shr1(&R, p256_add(&R, MOD, &R), &R); in p256_modinv_vartime()
314 p256_shr1(&S, p256_add(&S, MOD, &S) , &S); in p256_modinv_vartime()
319 if (p256_sub(&S, &R, &S)) p256_add(&S, MOD, &S); in p256_modinv_vartime()
323 if (p256_sub(&R, &S, &R)) p256_add(&R, MOD, &R); in p256_modinv_vartime()
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()
355 if (p256_add(&x3, &SECP256r1_b, &x3)) // x^3 - 3x + b in p256_is_valid_point()
/system/core/include/mincrypt/
Dp256.h116 int p256_add(const p256_int* a, const p256_int* b, p256_int* c);