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/lib/libcrypto/ec | |
| 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/lib/libcrypto/ec')
| -rw-r--r-- | src/lib/libcrypto/ec/ec.h | 15 |
1 files changed, 8 insertions, 7 deletions
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 |
