diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nistp256.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_nistp256.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nistp256.c b/src/lib/libcrypto/ec/ecp_nistp256.c index 38e87ecd03..674143cc3e 100644 --- a/src/lib/libcrypto/ec/ecp_nistp256.c +++ b/src/lib/libcrypto/ec/ecp_nistp256.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_nistp256.c,v 1.23 2021/04/20 17:16:37 tb Exp $ */ | 1 | /* $OpenBSD: ecp_nistp256.c,v 1.24 2021/04/20 17:28:18 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Adam Langley (Google) for the OpenSSL project | 3 | * Written by Adam Langley (Google) for the OpenSSL project |
4 | */ | 4 | */ |
@@ -1704,10 +1704,10 @@ EC_GFp_nistp256_method(void) | |||
1704 | .point_clear_finish = ec_GFp_simple_point_clear_finish, | 1704 | .point_clear_finish = ec_GFp_simple_point_clear_finish, |
1705 | .point_copy = ec_GFp_simple_point_copy, | 1705 | .point_copy = ec_GFp_simple_point_copy, |
1706 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, | 1706 | .point_set_to_infinity = ec_GFp_simple_point_set_to_infinity, |
1707 | .point_set_Jprojective_coordinates_GFp = | 1707 | .point_set_Jprojective_coordinates = |
1708 | ec_GFp_simple_set_Jprojective_coordinates_GFp, | 1708 | ec_GFp_simple_set_Jprojective_coordinates, |
1709 | .point_get_Jprojective_coordinates_GFp = | 1709 | .point_get_Jprojective_coordinates = |
1710 | ec_GFp_simple_get_Jprojective_coordinates_GFp, | 1710 | ec_GFp_simple_get_Jprojective_coordinates, |
1711 | .point_set_affine_coordinates = | 1711 | .point_set_affine_coordinates = |
1712 | ec_GFp_simple_point_set_affine_coordinates, | 1712 | ec_GFp_simple_point_set_affine_coordinates, |
1713 | .point_get_affine_coordinates = | 1713 | .point_get_affine_coordinates = |
@@ -1959,8 +1959,8 @@ ec_GFp_nistp256_points_mul(const EC_GROUP * group, EC_POINT * r, | |||
1959 | ECerror(ERR_R_BN_LIB); | 1959 | ECerror(ERR_R_BN_LIB); |
1960 | goto err; | 1960 | goto err; |
1961 | } | 1961 | } |
1962 | if (!EC_POINT_set_Jprojective_coordinates_GFp(group, | 1962 | if (!EC_POINT_set_Jprojective_coordinates(group, generator, |
1963 | generator, x, y, z, ctx)) | 1963 | x, y, z, ctx)) |
1964 | goto err; | 1964 | goto err; |
1965 | if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) | 1965 | if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) |
1966 | /* precomputation matches generator */ | 1966 | /* precomputation matches generator */ |
@@ -2089,7 +2089,7 @@ ec_GFp_nistp256_points_mul(const EC_GROUP * group, EC_POINT * r, | |||
2089 | ECerror(ERR_R_BN_LIB); | 2089 | ECerror(ERR_R_BN_LIB); |
2090 | goto err; | 2090 | goto err; |
2091 | } | 2091 | } |
2092 | ret = EC_POINT_set_Jprojective_coordinates_GFp(group, r, x, y, z, ctx); | 2092 | ret = EC_POINT_set_Jprojective_coordinates(group, r, x, y, z, ctx); |
2093 | 2093 | ||
2094 | err: | 2094 | err: |
2095 | BN_CTX_end(ctx); | 2095 | BN_CTX_end(ctx); |