diff options
| author | tb <> | 2021-05-10 16:58:19 +0000 |
|---|---|---|
| committer | tb <> | 2021-05-10 16:58:19 +0000 |
| commit | af2131b3d3df2c0644880be5750f567d3ef59b75 (patch) | |
| tree | 587defc39ff9b113b47fa7b364c8353214b92ee3 /src | |
| parent | a7fe63ff9b37d5b21fead44579594a2d636286a4 (diff) | |
| download | openbsd-af2131b3d3df2c0644880be5750f567d3ef59b75.tar.gz openbsd-af2131b3d3df2c0644880be5750f567d3ef59b75.tar.bz2 openbsd-af2131b3d3df2c0644880be5750f567d3ef59b75.zip | |
Expose EC_POINT_{get,set}_affine_coordinates(3) and
EC_POINT_set_compressed_coordinates(3)
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/Symbols.list | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/ec.h | 15 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index c5023001ef..c8834c5a1c 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
| @@ -1130,6 +1130,7 @@ EC_POINT_dbl | |||
| 1130 | EC_POINT_dup | 1130 | EC_POINT_dup |
| 1131 | EC_POINT_free | 1131 | EC_POINT_free |
| 1132 | EC_POINT_get_Jprojective_coordinates_GFp | 1132 | EC_POINT_get_Jprojective_coordinates_GFp |
| 1133 | EC_POINT_get_affine_coordinates | ||
| 1133 | EC_POINT_get_affine_coordinates_GF2m | 1134 | EC_POINT_get_affine_coordinates_GF2m |
| 1134 | EC_POINT_get_affine_coordinates_GFp | 1135 | EC_POINT_get_affine_coordinates_GFp |
| 1135 | EC_POINT_hex2point | 1136 | EC_POINT_hex2point |
| @@ -1145,8 +1146,10 @@ EC_POINT_point2bn | |||
| 1145 | EC_POINT_point2hex | 1146 | EC_POINT_point2hex |
| 1146 | EC_POINT_point2oct | 1147 | EC_POINT_point2oct |
| 1147 | EC_POINT_set_Jprojective_coordinates_GFp | 1148 | EC_POINT_set_Jprojective_coordinates_GFp |
| 1149 | EC_POINT_set_affine_coordinates | ||
| 1148 | EC_POINT_set_affine_coordinates_GF2m | 1150 | EC_POINT_set_affine_coordinates_GF2m |
| 1149 | EC_POINT_set_affine_coordinates_GFp | 1151 | EC_POINT_set_affine_coordinates_GFp |
| 1152 | EC_POINT_set_compressed_coordinates | ||
| 1150 | EC_POINT_set_compressed_coordinates_GF2m | 1153 | EC_POINT_set_compressed_coordinates_GF2m |
| 1151 | EC_POINT_set_compressed_coordinates_GFp | 1154 | EC_POINT_set_compressed_coordinates_GFp |
| 1152 | EC_POINT_set_to_infinity | 1155 | EC_POINT_set_to_infinity |
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index e8b00c8e23..61b70897f9 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec.h,v 1.23 2021/05/10 16:55:19 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.24 2021/05/10 16:58:19 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -453,12 +453,6 @@ const EC_METHOD *EC_POINT_method_of(const EC_POINT *point); | |||
| 453 | */ | 453 | */ |
| 454 | int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); | 454 | int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); |
| 455 | 455 | ||
| 456 | #if defined(LIBRESSL_INTERNAL) | ||
| 457 | |||
| 458 | int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p, | ||
| 459 | const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx); | ||
| 460 | int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group, | ||
| 461 | const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx); | ||
| 462 | int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p, | 456 | int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p, |
| 463 | const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx); | 457 | const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx); |
| 464 | int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p, | 458 | int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p, |
| @@ -466,6 +460,13 @@ int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p, | |||
| 466 | int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, | 460 | int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, |
| 467 | const BIGNUM *x, int y_bit, BN_CTX *ctx); | 461 | const BIGNUM *x, int y_bit, BN_CTX *ctx); |
| 468 | 462 | ||
| 463 | #if defined(LIBRESSL_INTERNAL) | ||
| 464 | |||
| 465 | int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p, | ||
| 466 | const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx); | ||
| 467 | int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group, | ||
| 468 | const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx); | ||
| 469 | |||
| 469 | #else | 470 | #else |
| 470 | 471 | ||
| 471 | /** Sets the jacobian projective coordinates of a EC_POINT over GFp | 472 | /** Sets the jacobian projective coordinates of a EC_POINT over GFp |
