Lines Matching refs:z

165     BIGNUM *x = NULL, *y = NULL, *z = NULL, *yplusone = NULL;  in prime_field_tests()  local
202 || !TEST_ptr(z = BN_new()) in prime_field_tests()
301 || !TEST_true(BN_hex2bn(&z, "0100000000" in prime_field_tests()
303 || !TEST_true(EC_GROUP_set_generator(group, P, z, BN_value_one())) in prime_field_tests()
310 if (!TEST_true(BN_hex2bn(&z, "23a62855" in prime_field_tests()
312 || !TEST_BN_eq(y, z) in prime_field_tests()
330 || !TEST_true(BN_hex2bn(&z, "FFFFFFFFFFFFFFFF" in prime_field_tests()
332 || !TEST_true(EC_GROUP_set_generator(group, P, z, BN_value_one())) in prime_field_tests()
340 if (!TEST_true(BN_hex2bn(&z, "07192B95FFC8DA78" in prime_field_tests()
342 || !TEST_BN_eq(y, z) in prime_field_tests()
367 || !TEST_true(BN_hex2bn(&z, "FFFFFFFFFFFFFFFFFFFFFFFF" in prime_field_tests()
369 || !TEST_true(EC_GROUP_set_generator(group, P, z, BN_value_one())) in prime_field_tests()
377 if (!TEST_true(BN_hex2bn(&z, "BD376388B5F723FB4C22DFE6" in prime_field_tests()
379 || !TEST_BN_eq(y, z) in prime_field_tests()
405 || !TEST_true(BN_hex2bn(&z, "FFFFFFFF00000000FFFFFFFFFFFFFFFF" in prime_field_tests()
407 || !TEST_true(EC_GROUP_set_generator(group, P, z, BN_value_one())) in prime_field_tests()
415 if (!TEST_true(BN_hex2bn(&z, "4FE342E2FE1A7F9B8EE7EB4A7C0F9E16" in prime_field_tests()
417 || !TEST_BN_eq(y, z) in prime_field_tests()
447 || !TEST_true(BN_hex2bn(&z, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" in prime_field_tests()
450 || !TEST_true(EC_GROUP_set_generator(group, P, z, BN_value_one())) in prime_field_tests()
458 if (!TEST_true(BN_hex2bn(&z, "3617DE4A96262C6F5D9E98BF9292DC29" in prime_field_tests()
461 || !TEST_BN_eq(y, z) in prime_field_tests()
497 || !TEST_true(BN_hex2bn(&z, "1FF" in prime_field_tests()
502 || !TEST_true(EC_GROUP_set_generator(group, P, z, BN_value_one())) in prime_field_tests()
510 if (!TEST_true(BN_hex2bn(&z, "118" in prime_field_tests()
515 || !TEST_BN_eq(y, z) in prime_field_tests()
548 if (!TEST_true(EC_GROUP_get_order(group, z, ctx)) in prime_field_tests()
549 || !TEST_true(BN_add(y, z, BN_value_one())) in prime_field_tests()
559 || !TEST_true(EC_POINTs_mul(group, R, z, 2, points, scalars, ctx)) in prime_field_tests()
563 || !TEST_true(BN_add(z, z, y))) in prime_field_tests()
565 BN_set_negative(z, 1); in prime_field_tests()
567 scalars[1] = z; /* z = -(order + y) */ in prime_field_tests()
572 || !TEST_true(BN_add(z, x, y))) in prime_field_tests()
574 BN_set_negative(z, 1); in prime_field_tests()
577 scalars[2] = z; /* z = -(x+y) */ in prime_field_tests()
601 BN_free(z); in prime_field_tests()
784 BIGNUM *x = NULL, *y = NULL, *z = NULL, *cof = NULL, *yplusone = NULL; in char2_curve_test() local
799 || !TEST_ptr(z = BN_new()) in char2_curve_test()
824 || !TEST_true(BN_hex2bn(&z, test->order)) in char2_curve_test()
826 || !TEST_true(EC_GROUP_set_generator(group, P, z, cof)) 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()
844 || !TEST_true(BN_hex2bn(&z, test->order)) in char2_curve_test()
846 || !TEST_true(EC_GROUP_set_generator(group, P, z, cof))) in char2_curve_test()
877 if (!TEST_true(BN_add(y, z, BN_value_one())) in char2_curve_test()
886 || !TEST_true(EC_POINTs_mul(group, R, z, 2, points, scalars, ctx)) in char2_curve_test()
892 || !TEST_true(BN_add(z, z, y))) in char2_curve_test()
894 BN_set_negative(z, 1); in char2_curve_test()
896 scalars[1] = z; /* z = -(order + y) */ in char2_curve_test()
903 || !TEST_true(BN_add(z, x, y))) in char2_curve_test()
905 BN_set_negative(z, 1); in char2_curve_test()
908 scalars[2] = z; /* z = -(x+y) */ in char2_curve_test()
924 BN_free(z); in char2_curve_test()
940 BIGNUM *x = NULL, *y = NULL, *z = NULL, *cof = NULL, *yplusone = NULL; in char2_field_tests() local
977 || !TEST_ptr(z = BN_new()) in char2_field_tests()
1081 BN_free(z); in char2_field_tests()
2817 const BIGNUM *z = NULL, *cof = NULL, *priv1 = NULL; in custom_params_test() local
2875 || !TEST_ptr(z = EC_GROUP_get0_order(group)) in custom_params_test()
2897 || !TEST_true(EC_GROUP_set_generator(altgroup, G2, z, cof)) in custom_params_test()