diff options
| author | tb <> | 2025-01-11 15:26:07 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-11 15:26:07 +0000 |
| commit | 02bbf3657f5074177fdaebad55dd44d1e85bfb33 (patch) | |
| tree | d2a94bc40907a4d97a7da9c1f63b88d3ac7761c6 /src/lib/libcrypto/ec/ecp_methods.c | |
| parent | d0ff9d15d4c443024f55be164e9b20c7837f1786 (diff) | |
| download | openbsd-02bbf3657f5074177fdaebad55dd44d1e85bfb33.tar.gz openbsd-02bbf3657f5074177fdaebad55dd44d1e85bfb33.tar.bz2 openbsd-02bbf3657f5074177fdaebad55dd44d1e85bfb33.zip | |
Rename the is_on_curve() method to point_is_on_curve()
Rename ec_is_on_curve() to ec_point_is_on_curve() and ec_cmp() to
ec_point_cmp().
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_methods.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ecp_methods.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index 8477fa547f..2ab5d48a6f 100644 --- a/src/lib/libcrypto/ec/ecp_methods.c +++ b/src/lib/libcrypto/ec/ecp_methods.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecp_methods.c,v 1.32 2025/01/11 15:20:23 tb Exp $ */ | 1 | /* $OpenBSD: ecp_methods.c,v 1.33 2025/01/11 15:26:07 tb Exp $ */ |
| 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
| 3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
| 4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
| @@ -167,7 +167,7 @@ ec_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, | |||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | static int | 169 | static int |
| 170 | ec_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx) | 170 | ec_point_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx) |
| 171 | { | 171 | { |
| 172 | int (*field_mul) (const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); | 172 | int (*field_mul) (const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); |
| 173 | int (*field_sqr) (const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *); | 173 | int (*field_sqr) (const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *); |
| @@ -268,7 +268,8 @@ ec_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx) | |||
| 268 | */ | 268 | */ |
| 269 | 269 | ||
| 270 | static int | 270 | static int |
| 271 | ec_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx) | 271 | ec_point_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, |
| 272 | BN_CTX *ctx) | ||
| 272 | { | 273 | { |
| 273 | int (*field_mul) (const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); | 274 | int (*field_mul) (const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); |
| 274 | int (*field_sqr) (const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *); | 275 | int (*field_sqr) (const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *); |
| @@ -1324,8 +1325,8 @@ static const EC_METHOD ec_GFp_simple_method = { | |||
| 1324 | .field_type = NID_X9_62_prime_field, | 1325 | .field_type = NID_X9_62_prime_field, |
| 1325 | .group_set_curve = ec_group_set_curve, | 1326 | .group_set_curve = ec_group_set_curve, |
| 1326 | .group_get_curve = ec_group_get_curve, | 1327 | .group_get_curve = ec_group_get_curve, |
| 1327 | .is_on_curve = ec_is_on_curve, | 1328 | .point_is_on_curve = ec_point_is_on_curve, |
| 1328 | .point_cmp = ec_cmp, | 1329 | .point_cmp = ec_point_cmp, |
| 1329 | .point_set_affine_coordinates = ec_point_set_affine_coordinates, | 1330 | .point_set_affine_coordinates = ec_point_set_affine_coordinates, |
| 1330 | .point_get_affine_coordinates = ec_point_get_affine_coordinates, | 1331 | .point_get_affine_coordinates = ec_point_get_affine_coordinates, |
| 1331 | .points_make_affine = ec_points_make_affine, | 1332 | .points_make_affine = ec_points_make_affine, |
| @@ -1350,8 +1351,8 @@ static const EC_METHOD ec_GFp_mont_method = { | |||
| 1350 | .field_type = NID_X9_62_prime_field, | 1351 | .field_type = NID_X9_62_prime_field, |
| 1351 | .group_set_curve = ec_mont_group_set_curve, | 1352 | .group_set_curve = ec_mont_group_set_curve, |
| 1352 | .group_get_curve = ec_group_get_curve, | 1353 | .group_get_curve = ec_group_get_curve, |
| 1353 | .is_on_curve = ec_is_on_curve, | 1354 | .point_is_on_curve = ec_point_is_on_curve, |
| 1354 | .point_cmp = ec_cmp, | 1355 | .point_cmp = ec_point_cmp, |
| 1355 | .point_set_affine_coordinates = ec_point_set_affine_coordinates, | 1356 | .point_set_affine_coordinates = ec_point_set_affine_coordinates, |
| 1356 | .point_get_affine_coordinates = ec_point_get_affine_coordinates, | 1357 | .point_get_affine_coordinates = ec_point_get_affine_coordinates, |
| 1357 | .points_make_affine = ec_points_make_affine, | 1358 | .points_make_affine = ec_points_make_affine, |
