diff options
author | tb <> | 2021-04-20 17:28:18 +0000 |
---|---|---|
committer | tb <> | 2021-04-20 17:28:18 +0000 |
commit | d4cd97c94eead199a5ddfade40166ffd21d00609 (patch) | |
tree | 84821870dcd67fd9178210e1adcc84248265dab1 /src/lib/libcrypto/ec/ec.h | |
parent | b567b8b60d2a8021e06cc33d2fee8b1cf180eac5 (diff) | |
download | openbsd-d4cd97c94eead199a5ddfade40166ffd21d00609.tar.gz openbsd-d4cd97c94eead199a5ddfade40166ffd21d00609.tar.bz2 openbsd-d4cd97c94eead199a5ddfade40166ffd21d00609.zip |
Provide EC_POINT_{g,s}et_Jprojective_coordinates for internal use
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index ebd80b91fd..ff60e80952 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.20 2021/04/20 17:16:37 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.21 2021/04/20 17:28:18 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 | */ |
@@ -454,6 +454,12 @@ const EC_METHOD *EC_POINT_method_of(const EC_POINT *point); | |||
454 | */ | 454 | */ |
455 | int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); | 455 | int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); |
456 | 456 | ||
457 | #if defined(LIBRESSL_INTERNAL) | ||
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 | #else | ||
457 | /** Sets the jacobian projective coordinates of a EC_POINT over GFp | 463 | /** Sets the jacobian projective coordinates of a EC_POINT over GFp |
458 | * \param group underlying EC_GROUP object | 464 | * \param group underlying EC_GROUP object |
459 | * \param p EC_POINT object | 465 | * \param p EC_POINT object |
@@ -477,6 +483,7 @@ int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, | |||
477 | */ | 483 | */ |
478 | int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, | 484 | int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, |
479 | const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx); | 485 | const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx); |
486 | #endif | ||
480 | 487 | ||
481 | #if defined(LIBRESSL_INTERNAL) | 488 | #if defined(LIBRESSL_INTERNAL) |
482 | int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p, | 489 | int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p, |