Searched refs:r_Z2 (Results 1 – 3 of 3) sorted by relevance
/external/boringssl/src/crypto/fipsmodule/ec/ |
D | ec_montgomery.c | 438 EC_FELEM r_Z2, Z2_mont, X; in ec_GFp_mont_cmp_x_coordinate() local 441 OPENSSL_memcpy(r_Z2.words, r->words, group->field.width * sizeof(BN_ULONG)); in ec_GFp_mont_cmp_x_coordinate() 442 ec_GFp_mont_felem_mul(group, &r_Z2, &r_Z2, &Z2_mont); in ec_GFp_mont_cmp_x_coordinate() 445 if (ec_felem_equal(group, &r_Z2, &X)) { in ec_GFp_mont_cmp_x_coordinate() 456 bn_add_words(r_Z2.words, r->words, group->order.d, group->field.width); in ec_GFp_mont_cmp_x_coordinate() 457 ec_GFp_mont_felem_mul(group, &r_Z2, &r_Z2, &Z2_mont); in ec_GFp_mont_cmp_x_coordinate() 458 if (ec_felem_equal(group, &r_Z2, &X)) { in ec_GFp_mont_cmp_x_coordinate()
|
D | p256-x86_64.c | 605 BN_ULONG r_Z2[P256_LIMBS], Z2_mont[P256_LIMBS], X[P256_LIMBS]; in ecp_nistz256_cmp_x_coordinate() local 607 ecp_nistz256_mul_mont(r_Z2, r->words, Z2_mont); in ecp_nistz256_cmp_x_coordinate() 610 if (OPENSSL_memcmp(r_Z2, X, sizeof(r_Z2)) == 0) { in ecp_nistz256_cmp_x_coordinate() 621 bn_add_words(r_Z2, r->words, group->order.d, P256_LIMBS); in ecp_nistz256_cmp_x_coordinate() 622 ecp_nistz256_mul_mont(r_Z2, r_Z2, Z2_mont); in ecp_nistz256_cmp_x_coordinate() 623 if (OPENSSL_memcmp(r_Z2, X, sizeof(r_Z2)) == 0) { in ecp_nistz256_cmp_x_coordinate()
|
/external/boringssl/src/third_party/fiat/ |
D | p256.c | 1011 fe r_Z2; in ec_GFp_nistp256_cmp_x_coordinate() local 1012 fe_frombytes(r_Z2, r->bytes); // r < order < p, so this is valid. in ec_GFp_nistp256_cmp_x_coordinate() 1013 fe_mul(r_Z2, r_Z2, Z2_mont); in ec_GFp_nistp256_cmp_x_coordinate() 1019 if (OPENSSL_memcmp(&r_Z2, &X, sizeof(r_Z2)) == 0) { in ec_GFp_nistp256_cmp_x_coordinate() 1033 fe_from_generic(r_Z2, &tmp); in ec_GFp_nistp256_cmp_x_coordinate() 1034 fe_mul(r_Z2, r_Z2, Z2_mont); in ec_GFp_nistp256_cmp_x_coordinate() 1035 if (OPENSSL_memcmp(&r_Z2, &X, sizeof(r_Z2)) == 0) { in ec_GFp_nistp256_cmp_x_coordinate()
|