Lines Matching refs:y

165     BIGNUM *x = NULL, *y = NULL, *z = NULL, *yplusone = NULL;  in prime_field_tests()  local
201 || !TEST_ptr(y = BN_new()) in prime_field_tests()
209 if (!TEST_true(EC_POINT_get_affine_coordinates(group, Q, x, y, ctx))) in prime_field_tests()
213 test_output_bignum("y", y); in prime_field_tests()
226 if (!TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, in prime_field_tests()
231 test_output_bignum("y", y); in prime_field_tests()
290 || !TEST_true(BN_hex2bn(&y, "23a62855" in prime_field_tests()
292 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
299 || !TEST_true(EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) in prime_field_tests()
304 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in prime_field_tests()
308 test_output_bignum("y", y); in prime_field_tests()
312 || !TEST_BN_eq(y, z) in prime_field_tests()
333 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in prime_field_tests()
338 test_output_bignum("y", y); in prime_field_tests()
342 || !TEST_BN_eq(y, z) in prime_field_tests()
343 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
370 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in prime_field_tests()
375 test_output_bignum("y", y); in prime_field_tests()
379 || !TEST_BN_eq(y, z) in prime_field_tests()
380 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
408 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in prime_field_tests()
413 test_output_bignum("y", y); in prime_field_tests()
417 || !TEST_BN_eq(y, z) in prime_field_tests()
418 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
451 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in prime_field_tests()
456 test_output_bignum("y", y); in prime_field_tests()
461 || !TEST_BN_eq(y, z) in prime_field_tests()
462 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
503 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in prime_field_tests()
508 test_output_bignum("y", y); in prime_field_tests()
515 || !TEST_BN_eq(y, z) in prime_field_tests()
516 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
529 || !TEST_true(EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) in prime_field_tests()
549 || !TEST_true(BN_add(y, z, BN_value_one())) in prime_field_tests()
550 || !TEST_BN_even(y) in prime_field_tests()
551 || !TEST_true(BN_rshift1(y, y))) in prime_field_tests()
554 scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */ in prime_field_tests()
555 scalars[1] = y; in prime_field_tests()
562 || !TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in prime_field_tests()
563 || !TEST_true(BN_add(z, z, y))) in prime_field_tests()
566 scalars[0] = y; in prime_field_tests()
571 || !TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in prime_field_tests()
572 || !TEST_true(BN_add(z, x, y))) in prime_field_tests()
576 scalars[1] = y; in prime_field_tests()
600 BN_free(y); in prime_field_tests()
615 const char *y; member
784 BIGNUM *x = NULL, *y = NULL, *z = NULL, *cof = NULL, *yplusone = NULL; in char2_curve_test() local
798 || !TEST_ptr(y = BN_new()) in char2_curve_test()
809 || !TEST_true(BN_hex2bn(&y, test->y)) in char2_curve_test()
810 || !TEST_true(BN_add(yplusone, y, BN_value_one()))) in char2_curve_test()
827 || !TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, ctx))) in char2_curve_test()
831 test_output_bignum("y", y); in char2_curve_test()
833 if (!TEST_true(BN_hex2bn(&z, test->y)) in char2_curve_test()
834 || !TEST_BN_eq(y, z)) in char2_curve_test()
842 || !TEST_true(EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) in char2_curve_test()
850 test_output_bignum("y", y); in char2_curve_test()
859 if (!TEST_true(EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) in char2_curve_test()
877 if (!TEST_true(BN_add(y, z, BN_value_one())) in char2_curve_test()
878 || !TEST_BN_even(y) in char2_curve_test()
879 || !TEST_true(BN_rshift1(y, y))) in char2_curve_test()
881 scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */ in char2_curve_test()
882 scalars[1] = y; in char2_curve_test()
891 if (!TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in char2_curve_test()
892 || !TEST_true(BN_add(z, z, y))) in char2_curve_test()
895 scalars[0] = y; in char2_curve_test()
902 if (!TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in char2_curve_test()
903 || !TEST_true(BN_add(z, x, y))) in char2_curve_test()
907 scalars[1] = y; in char2_curve_test()
923 BN_free(y); in char2_curve_test()
940 BIGNUM *x = NULL, *y = NULL, *z = NULL, *cof = NULL, *yplusone = NULL; in char2_field_tests() local
976 || !TEST_ptr(y = BN_new()) in char2_field_tests()
985 || !TEST_true(BN_hex2bn(&y, "8")) in char2_field_tests()
986 || !TEST_true(EC_POINT_set_affine_coordinates(group, Q, x, y, ctx)) in char2_field_tests()
993 if (!TEST_true(EC_POINT_get_affine_coordinates(group, Q, x, y, ctx))) in char2_field_tests()
998 test_output_bignum("y", y); in char2_field_tests()
1011 if (!TEST_true(EC_POINT_get_affine_coordinates(group, P, x, y, in char2_field_tests()
1016 test_output_bignum("y", y); in char2_field_tests()
1080 BN_free(y); in char2_field_tests()
1089 BIGNUM *x = NULL, *y = NULL; in hybrid_point_encoding_test() local
1097 || !TEST_true(BN_dec2bn(&y, "1")) in hybrid_point_encoding_test()
1100 || !TEST_true(EC_POINT_set_affine_coordinates(group, point, x, y, NULL)) in hybrid_point_encoding_test()
1129 BN_free(y); in hybrid_point_encoding_test()
1316 BIGNUM *p = NULL, *a = NULL, *b = NULL, *x = NULL, *y = NULL; in nistp_single_test() local
1329 || !TEST_ptr(y = BN_new()) in nistp_single_test()
1346 || !TEST_true(BN_hex2bn(&y, test->Qy)) in nistp_single_test()
1347 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in nistp_single_test()
1354 || !TEST_true(EC_POINT_set_affine_coordinates(NISTP, Q_CHECK, x, y, in nistp_single_test()
1357 || !TEST_true(BN_hex2bn(&y, test->Gy)) in nistp_single_test()
1358 || !TEST_true(EC_POINT_set_affine_coordinates(NISTP, G, x, y, ctx)) in nistp_single_test()
1441 BN_free(y); in nistp_single_test()
2242 BIGNUM *x = NULL, *y = NULL; in check_ec_key_field_public_range_test() local
2246 || !TEST_ptr(y = BN_new()) in check_ec_key_field_public_range_test()
2253 || !TEST_int_gt(EC_POINT_get_affine_coordinates(group, pub, x, y, in check_ec_key_field_public_range_test()
2278 if (!TEST_int_le(EC_KEY_set_public_key_affine_coordinates(key, x, y), 0)) in check_ec_key_field_public_range_test()
2284 BN_free(y); in check_ec_key_field_public_range_test()