Searched refs:p256_sub (Results 1 – 2 of 2) sorted by relevance
/external/libconstrainedcrypto/ |
D | p256.c | 252 int p256_sub(const p256_int* a, const p256_int* b, p256_int* c) { in p256_sub() function 317 if (!p256_sub(&V, &U, NULL)) { in p256_modinv_vartime() 318 p256_sub(&V, &U, &V); in p256_modinv_vartime() 319 if (p256_sub(&S, &R, &S)) p256_add(&S, MOD, &S); in p256_modinv_vartime() 322 p256_sub(&U, &V, &U); 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() 356 p256_sub(&x3, &SECP256r1_p, &x3); in p256_is_valid_point()
|
/external/libconstrainedcrypto/include/constrainedcrypto/ |
D | p256.h | 112 int p256_sub(const p256_int* a, const p256_int* b, p256_int* c);
|