Lines Matching refs:NISTP
1318 EC_GROUP *NISTP = NULL; in nistp_single_test() local
1335 || !TEST_ptr(NISTP = EC_GROUP_new_by_curve_name(test->nid)) in nistp_single_test()
1340 || !TEST_true(EC_GROUP_set_curve(NISTP, p, a, b, ctx)) in nistp_single_test()
1341 || !TEST_ptr(G = EC_POINT_new(NISTP)) in nistp_single_test()
1342 || !TEST_ptr(P = EC_POINT_new(NISTP)) in nistp_single_test()
1343 || !TEST_ptr(Q = EC_POINT_new(NISTP)) in nistp_single_test()
1344 || !TEST_ptr(Q_CHECK = EC_POINT_new(NISTP)) in nistp_single_test()
1352 || !TEST_false(EC_POINT_set_affine_coordinates(NISTP, Q_CHECK, x, in nistp_single_test()
1354 || !TEST_true(EC_POINT_set_affine_coordinates(NISTP, Q_CHECK, x, y, in nistp_single_test()
1358 || !TEST_true(EC_POINT_set_affine_coordinates(NISTP, G, x, y, ctx)) in nistp_single_test()
1360 || !TEST_true(EC_GROUP_set_generator(NISTP, G, order, BN_value_one())) in nistp_single_test()
1361 || !TEST_int_eq(EC_GROUP_get_degree(NISTP), test->degree)) in nistp_single_test()
1368 EC_POINT_mul(NISTP, Q, n, NULL, NULL, ctx); in nistp_single_test()
1369 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx))) in nistp_single_test()
1372 EC_POINT_mul(NISTP, Q, NULL, G, n, ctx); in nistp_single_test()
1373 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx)) in nistp_single_test()
1376 || !TEST_true(EC_POINT_dbl(NISTP, P, G, ctx)) in nistp_single_test()
1377 || !TEST_true(EC_GROUP_set_generator(NISTP, P, order, BN_value_one())) in nistp_single_test()
1384 EC_POINT_mul(NISTP, Q, m, NULL, NULL, ctx); in nistp_single_test()
1385 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx))) in nistp_single_test()
1388 EC_POINT_mul(NISTP, Q, NULL, P, m, ctx); in nistp_single_test()
1389 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx)) in nistp_single_test()
1392 || !TEST_false(EC_GROUP_have_precompute_mult(NISTP)) in nistp_single_test()
1394 || !TEST_true(EC_GROUP_precompute_mult(NISTP, ctx)) in nistp_single_test()
1400 EC_POINT_mul(NISTP, Q, m, NULL, NULL, ctx); in nistp_single_test()
1401 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx))) in nistp_single_test()
1404 EC_POINT_mul(NISTP, Q, NULL, P, m, ctx); in nistp_single_test()
1405 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx)) in nistp_single_test()
1408 || !TEST_true(EC_GROUP_set_generator(NISTP, G, order, BN_value_one()))) in nistp_single_test()
1411 EC_POINT_mul(NISTP, Q, n, NULL, NULL, ctx); in nistp_single_test()
1412 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx))) in nistp_single_test()
1415 EC_POINT_mul(NISTP, Q, NULL, G, n, ctx); in nistp_single_test()
1416 if (!TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, Q_CHECK, ctx))) in nistp_single_test()
1423 || !TEST_true(EC_POINT_invert(NISTP, P, ctx)) in nistp_single_test()
1424 || !TEST_true(EC_POINT_mul(NISTP, Q, m, P, n, ctx)) in nistp_single_test()
1425 || !TEST_int_eq(0, EC_POINT_cmp(NISTP, Q, G, ctx))) in nistp_single_test()
1430 EC_GROUP_free(NISTP); in nistp_single_test()