OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SECP256r1_p
(Results
1 - 3
of
3
) sorted by null
/system/core/libmincrypt/
p256.c
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)
[
all
...]
p256_ec.c
[
all
...]
/system/core/include/mincrypt/
p256.h
55
extern const p256_int
SECP256r1_p
; // Curve prime
Completed in 248 milliseconds