Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/ec/
Dec_montgomery.c437 EC_FELEM r_Z2, Z2_mont, X; in ec_GFp_mont_cmp_x_coordinate() local
440 OPENSSL_memcpy(r_Z2.words, r->words, group->field.width * sizeof(BN_ULONG)); in ec_GFp_mont_cmp_x_coordinate()
441 ec_GFp_mont_felem_mul(group, &r_Z2, &r_Z2, &Z2_mont); in ec_GFp_mont_cmp_x_coordinate()
444 if (ec_felem_equal(group, &r_Z2, &X)) { in ec_GFp_mont_cmp_x_coordinate()
455 bn_add_words(r_Z2.words, r->words, group->order.d, group->field.width); in ec_GFp_mont_cmp_x_coordinate()
456 ec_GFp_mont_felem_mul(group, &r_Z2, &r_Z2, &Z2_mont); in ec_GFp_mont_cmp_x_coordinate()
457 if (ec_felem_equal(group, &r_Z2, &X)) { in ec_GFp_mont_cmp_x_coordinate()
Dp256-x86_64.c615 BN_ULONG r_Z2[P256_LIMBS], Z2_mont[P256_LIMBS], X[P256_LIMBS]; in ecp_nistz256_cmp_x_coordinate() local
617 ecp_nistz256_mul_mont(r_Z2, r->words, Z2_mont); in ecp_nistz256_cmp_x_coordinate()
620 if (OPENSSL_memcmp(r_Z2, X, sizeof(r_Z2)) == 0) { in ecp_nistz256_cmp_x_coordinate()
631 bn_add_words(r_Z2, r->words, group->order.d, P256_LIMBS); in ecp_nistz256_cmp_x_coordinate()
632 ecp_nistz256_mul_mont(r_Z2, r_Z2, Z2_mont); in ecp_nistz256_cmp_x_coordinate()
633 if (OPENSSL_memcmp(r_Z2, X, sizeof(r_Z2)) == 0) { in ecp_nistz256_cmp_x_coordinate()
/external/boringssl/src/third_party/fiat/
Dp256.c1029 fe r_Z2; in ec_GFp_nistp256_cmp_x_coordinate() local
1030 fe_frombytes(r_Z2, r->bytes); // r < order < p, so this is valid. in ec_GFp_nistp256_cmp_x_coordinate()
1031 fe_mul(r_Z2, r_Z2, Z2_mont); in ec_GFp_nistp256_cmp_x_coordinate()
1037 if (OPENSSL_memcmp(&r_Z2, &X, sizeof(r_Z2)) == 0) { in ec_GFp_nistp256_cmp_x_coordinate()
1051 fe_from_generic(r_Z2, &tmp); in ec_GFp_nistp256_cmp_x_coordinate()
1052 fe_mul(r_Z2, r_Z2, Z2_mont); in ec_GFp_nistp256_cmp_x_coordinate()
1053 if (OPENSSL_memcmp(&r_Z2, &X, sizeof(r_Z2)) == 0) { in ec_GFp_nistp256_cmp_x_coordinate()