diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nistp521.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_nistp521.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nistp521.c b/src/lib/libcrypto/ec/ecp_nistp521.c index 24eb032951..c34c38b7e8 100644 --- a/src/lib/libcrypto/ec/ecp_nistp521.c +++ b/src/lib/libcrypto/ec/ecp_nistp521.c | |||
@@ -1479,51 +1479,51 @@ typedef struct { | |||
1479 | int references; | 1479 | int references; |
1480 | } NISTP521_PRE_COMP; | 1480 | } NISTP521_PRE_COMP; |
1481 | 1481 | ||
1482 | const EC_METHOD *EC_GFp_nistp521_method(void) | 1482 | const EC_METHOD * |
1483 | { | 1483 | EC_GFp_nistp521_method(void) |
1484 | { | ||
1484 | static const EC_METHOD ret = { | 1485 | static const EC_METHOD ret = { |
1485 | EC_FLAGS_DEFAULT_OCT, | 1486 | .flags = EC_FLAGS_DEFAULT_OCT, |
1486 | NID_X9_62_prime_field, | 1487 | .field_type = NID_X9_62_prime_field, |
1487 | ec_GFp_nistp521_group_init, | 1488 | .group_init = ec_GFp_nistp521_group_init, |
1488 | ec_GFp_simple_group_finish, | 1489 | .group_finish = ec_GFp_simple_group_finish, |
1489 | ec_GFp_simple_group_clear_finish, | 1490 | .group_clear_finish = ec_GFp_simple_group_clear_finish, |
1490 | ec_GFp_nist_group_copy, | 1491 | .group_copy = ec_GFp_nist_group_copy, |
1491 | ec_GFp_nistp521_group_set_curve, | 1492 | .group_set_curve = ec_GFp_nistp521_group_set_curve, |
1492 | ec_GFp_simple_group_get_curve, | 1493 | .group_get_curve = ec_GFp_simple_group_get_curve, |
1493 | ec_GFp_simple_group_get_degree, | 1494 | .group_get_degree = ec_GFp_simple_group_get_degree, |
1494 | ec_GFp_simple_group_check_discriminant, | 1495 | .group_check_discriminant = |
1495 | ec_GFp_simple_point_init, | 1496 | ec_GFp_simple_group_check_discriminant, |
1496 | ec_GFp_simple_point_finish, | 1497 | .point_init = ec_GFp_simple_point_init, |
1497 | ec_GFp_simple_point_clear_finish, | 1498 | .point_finish = ec_GFp_simple_point_finish, |
1498 | ec_GFp_simple_point_copy, | 1499 | .point_clear_finish = ec_GFp_simple_point_clear_finish, |
1499 | ec_GFp_simple_point_set_to_infinity, | 1500 | .point_copy = ec_GFp_simple_point_copy, |
1500 | ec_GFp_simple_set_Jprojective_coordinates_GFp, | 1501 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, |
1501 | ec_GFp_simple_get_Jprojective_coordinates_GFp, | 1502 | .point_set_Jprojective_coordinates_GFp = |
1502 | ec_GFp_simple_point_set_affine_coordinates, | 1503 | ec_GFp_simple_set_Jprojective_coordinates_GFp, |
1503 | ec_GFp_nistp521_point_get_affine_coordinates, | 1504 | .point_get_Jprojective_coordinates_GFp = |
1504 | 0 /* point_set_compressed_coordinates */, | 1505 | ec_GFp_simple_get_Jprojective_coordinates_GFp, |
1505 | 0 /* point2oct */, | 1506 | .point_set_affine_coordinates = |
1506 | 0 /* oct2point */, | 1507 | ec_GFp_simple_point_set_affine_coordinates, |
1507 | ec_GFp_simple_add, | 1508 | .point_get_affine_coordinates = |
1508 | ec_GFp_simple_dbl, | 1509 | ec_GFp_nistp521_point_get_affine_coordinates, |
1509 | ec_GFp_simple_invert, | 1510 | .add = ec_GFp_simple_add, |
1510 | ec_GFp_simple_is_at_infinity, | 1511 | .dbl = ec_GFp_simple_dbl, |
1511 | ec_GFp_simple_is_on_curve, | 1512 | .invert = ec_GFp_simple_invert, |
1512 | ec_GFp_simple_cmp, | 1513 | .is_at_infinity = ec_GFp_simple_is_at_infinity, |
1513 | ec_GFp_simple_make_affine, | 1514 | .is_on_curve = ec_GFp_simple_is_on_curve, |
1514 | ec_GFp_simple_points_make_affine, | 1515 | .point_cmp = ec_GFp_simple_cmp, |
1515 | ec_GFp_nistp521_points_mul, | 1516 | .make_affine = ec_GFp_simple_make_affine, |
1516 | ec_GFp_nistp521_precompute_mult, | 1517 | .points_make_affine = ec_GFp_simple_points_make_affine, |
1517 | ec_GFp_nistp521_have_precompute_mult, | 1518 | .mul = ec_GFp_nistp521_points_mul, |
1518 | ec_GFp_nist_field_mul, | 1519 | .precompute_mult = ec_GFp_nistp521_precompute_mult, |
1519 | ec_GFp_nist_field_sqr, | 1520 | .have_precompulte_mult = ec_GFp_nistp521_have_precompute_mult, |
1520 | 0 /* field_div */, | 1521 | .field_mul = ec_GFp_nist_field_mul, |
1521 | 0 /* field_encode */, | 1522 | .field_sqr = ec_GFp_nist_field_sqr |
1522 | 0 /* field_decode */, | 1523 | }; |
1523 | 0 /* field_set_to_one */ }; | ||
1524 | 1524 | ||
1525 | return &ret; | 1525 | return &ret; |
1526 | } | 1526 | } |
1527 | 1527 | ||
1528 | 1528 | ||
1529 | /******************************************************************************/ | 1529 | /******************************************************************************/ |