diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nistp256.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_nistp256.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nistp256.c b/src/lib/libcrypto/ec/ecp_nistp256.c index 947fb7eee0..132ca0d250 100644 --- a/src/lib/libcrypto/ec/ecp_nistp256.c +++ b/src/lib/libcrypto/ec/ecp_nistp256.c | |||
@@ -1613,51 +1613,51 @@ typedef struct { | |||
1613 | int references; | 1613 | int references; |
1614 | } NISTP256_PRE_COMP; | 1614 | } NISTP256_PRE_COMP; |
1615 | 1615 | ||
1616 | const EC_METHOD *EC_GFp_nistp256_method(void) | 1616 | const EC_METHOD * |
1617 | { | 1617 | EC_GFp_nistp256_method(void) |
1618 | { | ||
1618 | static const EC_METHOD ret = { | 1619 | static const EC_METHOD ret = { |
1619 | EC_FLAGS_DEFAULT_OCT, | 1620 | .flags = EC_FLAGS_DEFAULT_OCT, |
1620 | NID_X9_62_prime_field, | 1621 | .field_type = NID_X9_62_prime_field, |
1621 | ec_GFp_nistp256_group_init, | 1622 | .group_init = ec_GFp_nistp256_group_init, |
1622 | ec_GFp_simple_group_finish, | 1623 | .group_finish = ec_GFp_simple_group_finish, |
1623 | ec_GFp_simple_group_clear_finish, | 1624 | .group_clear_finish = ec_GFp_simple_group_clear_finish, |
1624 | ec_GFp_nist_group_copy, | 1625 | .group_copy = ec_GFp_nist_group_copy, |
1625 | ec_GFp_nistp256_group_set_curve, | 1626 | .group_set_curve = ec_GFp_nistp256_group_set_curve, |
1626 | ec_GFp_simple_group_get_curve, | 1627 | .group_get_curve = ec_GFp_simple_group_get_curve, |
1627 | ec_GFp_simple_group_get_degree, | 1628 | .group_get_degree = ec_GFp_simple_group_get_degree, |
1628 | ec_GFp_simple_group_check_discriminant, | 1629 | .group_check_discriminant = |
1629 | ec_GFp_simple_point_init, | 1630 | ec_GFp_simple_group_check_discriminant, |
1630 | ec_GFp_simple_point_finish, | 1631 | .point_init = ec_GFp_simple_point_init, |
1631 | ec_GFp_simple_point_clear_finish, | 1632 | .point_finish = ec_GFp_simple_point_finish, |
1632 | ec_GFp_simple_point_copy, | 1633 | .point_clear_finish = ec_GFp_simple_point_clear_finish, |
1633 | ec_GFp_simple_point_set_to_infinity, | 1634 | .point_copy = ec_GFp_simple_point_copy, |
1634 | ec_GFp_simple_set_Jprojective_coordinates_GFp, | 1635 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, |
1635 | ec_GFp_simple_get_Jprojective_coordinates_GFp, | 1636 | .point_set_Jprojective_coordinates_GFp = |
1636 | ec_GFp_simple_point_set_affine_coordinates, | 1637 | ec_GFp_simple_set_Jprojective_coordinates_GFp, |
1637 | ec_GFp_nistp256_point_get_affine_coordinates, | 1638 | .point_get_Jprojective_coordinates_GFp = |
1638 | 0 /* point_set_compressed_coordinates */, | 1639 | ec_GFp_simple_get_Jprojective_coordinates_GFp, |
1639 | 0 /* point2oct */, | 1640 | .point_set_affine_coordinates = |
1640 | 0 /* oct2point */, | 1641 | ec_GFp_simple_point_set_affine_coordinates, |
1641 | ec_GFp_simple_add, | 1642 | .point_get_affine_coordinates = |
1642 | ec_GFp_simple_dbl, | 1643 | ec_GFp_nistp256_point_get_affine_coordinates, |
1643 | ec_GFp_simple_invert, | 1644 | .add = ec_GFp_simple_add, |
1644 | ec_GFp_simple_is_at_infinity, | 1645 | .dbl = ec_GFp_simple_dbl, |
1645 | ec_GFp_simple_is_on_curve, | 1646 | .invert = ec_GFp_simple_invert, |
1646 | ec_GFp_simple_cmp, | 1647 | .is_at_infinity = ec_GFp_simple_is_at_infinity, |
1647 | ec_GFp_simple_make_affine, | 1648 | .is_on_curve = ec_GFp_simple_is_on_curve, |
1648 | ec_GFp_simple_points_make_affine, | 1649 | .point_cmp = ec_GFp_simple_cmp, |
1649 | ec_GFp_nistp256_points_mul, | 1650 | .make_affine = ec_GFp_simple_make_affine, |
1650 | ec_GFp_nistp256_precompute_mult, | 1651 | .points_make_affine = ec_GFp_simple_points_make_affine, |
1651 | ec_GFp_nistp256_have_precompute_mult, | 1652 | .mul = ec_GFp_nistp256_points_mul, |
1652 | ec_GFp_nist_field_mul, | 1653 | .precompute_mult = ec_GFp_nistp256_precompute_mult, |
1653 | ec_GFp_nist_field_sqr, | 1654 | .have_precompute_mult = ec_GFp_nistp256_have_precompute_mult, |
1654 | 0 /* field_div */, | 1655 | .field_mul = ec_GFp_nist_field_mul, |
1655 | 0 /* field_encode */, | 1656 | .field_sqr = ec_GFp_nist_field_sqr |
1656 | 0 /* field_decode */, | 1657 | }; |
1657 | 0 /* field_set_to_one */ }; | ||
1658 | 1658 | ||
1659 | return &ret; | 1659 | return &ret; |
1660 | } | 1660 | } |
1661 | 1661 | ||
1662 | /******************************************************************************/ | 1662 | /******************************************************************************/ |
1663 | /* FUNCTIONS TO MANAGE PRECOMPUTATION | 1663 | /* FUNCTIONS TO MANAGE PRECOMPUTATION |