Lines Matching +full:0098 +full:b
161 BIGNUM *p = NULL, *a = NULL, *b = NULL, *scalar3 = NULL; in prime_field_tests() local
176 || !TEST_ptr(b = BN_new()) in prime_field_tests()
179 || !TEST_true(BN_hex2bn(&b, "1")) in prime_field_tests()
180 || !TEST_ptr(group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) in prime_field_tests()
181 || !TEST_true(EC_GROUP_get_curve(group, p, a, b, ctx))) in prime_field_tests()
185 TEST_note(" y^2 = x^3 + a*x + b (mod p)"); in prime_field_tests()
187 test_output_bignum("b", b); in prime_field_tests()
283 || !TEST_true(BN_hex2bn(&b, "1C97BEFC" in prime_field_tests()
285 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx)) in prime_field_tests()
321 || !TEST_true(BN_hex2bn(&b, "64210519E59C80E7" in prime_field_tests()
323 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx)) in prime_field_tests()
358 || !TEST_true(BN_hex2bn(&b, "B4050A850C04B3ABF5413256" in prime_field_tests()
360 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx)) in prime_field_tests()
395 || !TEST_true(BN_hex2bn(&b, "5AC635D8AA3A93E7B3EBBD55769886BC" in prime_field_tests()
397 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx)) in prime_field_tests()
435 || !TEST_true(BN_hex2bn(&b, "B3312FA7E23EE7E4988E056BE3F82D19" in prime_field_tests()
438 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx)) in prime_field_tests()
482 || !TEST_true(BN_hex2bn(&b, "051" in prime_field_tests()
487 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx)) in prime_field_tests()
592 BN_free(b); in prime_field_tests()
611 const char *b; member
628 /* Curve B-163 (FIPS PUB 186-2, App. 6) */
630 "NIST curve B-163",
648 /* Curve B-233 (FIPS PUB 186-2, App. 6) */
650 "NIST curve B-233",
674 /* Curve B-283 (FIPS PUB 186-2, App. 6) */
676 "NIST curve B-283",
706 /* Curve B-409 (FIPS PUB 186-2, App. 6) */
708 "NIST curve B-409",
742 /* Curve B-571 (FIPS PUB 186-2, App. 6) */
744 "NIST curve B-571",
771 BIGNUM *p = NULL, *a = NULL, *b = NULL; in char2_curve_test() local
784 || !TEST_ptr(b = BN_new()) in char2_curve_test()
791 || !TEST_true(BN_hex2bn(&b, test->b)) in char2_curve_test()
792 || !TEST_true(group = EC_GROUP_new_curve_GF2m(p, a, b, ctx)) in char2_curve_test()
909 BN_free(b); in char2_curve_test()
925 BIGNUM *p = NULL, *a = NULL, *b = NULL; in char2_field_tests() local
936 || !TEST_ptr(b = BN_new()) in char2_field_tests()
939 || !TEST_true(BN_hex2bn(&b, "1"))) in char2_field_tests()
942 if (!TEST_ptr(group = EC_GROUP_new_curve_GF2m(p, a, b, ctx)) in char2_field_tests()
943 || !TEST_true(EC_GROUP_get_curve(group, p, a, b, ctx))) in char2_field_tests()
947 TEST_note(" y^2 + x*y = x^3 + a*x^2 + b (mod p)"); in char2_field_tests()
949 test_output_bignum("b", b); in char2_field_tests()
1060 BN_free(b); in char2_field_tests()
1194 const char *p, *a, *b, *Qx, *Qy, *Gx, *Gy, *order, *d; member
1206 /* b */
1229 /* b */
1256 /* b */
1261 "0098"
1291 BIGNUM *p = NULL, *a = NULL, *b = NULL, *x = NULL, *y = NULL; in nistp_single_test() local
1302 || !TEST_ptr(b = BN_new()) in nistp_single_test()
1314 || !TEST_true(BN_hex2bn(&b, test->b)) in nistp_single_test()
1315 || !TEST_true(EC_GROUP_set_curve(NISTP, p, a, b, ctx)) in nistp_single_test()
1414 BN_free(b); in nistp_single_test()
2029 * Setting arbitrary p, a or b might fail for some EC_GROUPs in check_named_curve_test()
2450 BIGNUM *p, *a, *b; in ossl_parameter_test() local
2481 b = BN_CTX_get(bn_ctx); in ossl_parameter_test()
2483 if (!TEST_true(EC_GROUP_get_curve(group_nmd, p, a, b, bn_ctx)) in ossl_parameter_test()
2488 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, b))) in ossl_parameter_test()
2887 BIGNUM *p, *a, *b; in do_test_custom_explicit_fromdata() local
2900 b = BN_CTX_get(ctx); in do_test_custom_explicit_fromdata()
2902 if (!TEST_ptr(b) in do_test_custom_explicit_fromdata()
2922 if (!TEST_true(EC_GROUP_get_curve(group, p, a, b, ctx)) in do_test_custom_explicit_fromdata()
2927 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, b))) in do_test_custom_explicit_fromdata()
2989 || !TEST_BN_eq(b_out, b) in do_test_custom_explicit_fromdata()
3200 BIGNUM *p = NULL, *a = NULL, *b = NULL; in custom_params_test() local
3224 || !TEST_ptr(b = BN_CTX_get(ctx)) in custom_params_test()
3244 if (!TEST_true(EC_GROUP_get_curve(group, p, a, b, ctx)) in custom_params_test()
3265 if (!TEST_ptr(altgroup = EC_GROUP_new_curve_GFp(p, a, b, ctx))) in custom_params_test()
3270 if (!TEST_ptr(altgroup = EC_GROUP_new_curve_GF2m(p, a, b, ctx))) in custom_params_test()