aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-05-30 13:16:03 +0000
committerBodo Möller <bodo@openssl.org>2002-05-30 13:16:03 +0000
commit6cbe6382944ff47881593935cc5b029f745beeea (patch)
treeddc38dca2c2eac7380c147e295cc624a8fb278b3 /crypto/ec/ec.h
parent07c08ed42cfda6dd5137c5ec2d5915415f7971c9 (diff)
downloadopenssl-6cbe6382944ff47881593935cc5b029f745beeea.tar.gz
New functions EC_POINT_point2bn(), EC_POINT_bn2point(), EC_POINT_point2hex(), EC_POINT_hex2point()
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec/ec.h')
-rw-r--r--crypto/ec/ec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h
index 6baf39cfa6..2dbe3efadf 100644
--- a/crypto/ec/ec.h
+++ b/crypto/ec/ec.h
@@ -198,6 +198,16 @@ size_t EC_POINT_point2oct(const EC_GROUP *, const EC_POINT *, point_conversion_f
int EC_POINT_oct2point(const EC_GROUP *, EC_POINT *,
const unsigned char *buf, size_t len, BN_CTX *);
+/* other interfaces to point2oct/oct2point: */
+BIGNUM *EC_POINT_point2bn(const EC_GROUP *, const EC_POINT *,
+ point_conversion_form_t form, BIGNUM *, BN_CTX *);
+EC_POINT *EC_POINT_bn2point(const EC_GROUP *, const BIGNUM *,
+ EC_POINT *, BN_CTX *);
+char *EC_POINT_point2hex(const EC_GROUP *, const EC_POINT *,
+ point_conversion_form_t form, BN_CTX *);
+EC_POINT *EC_POINT_hex2point(const EC_GROUP *, const char *,
+ EC_POINT *, BN_CTX *);
+
int EC_POINT_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
int EC_POINT_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
int EC_POINT_invert(const EC_GROUP *, EC_POINT *, BN_CTX *);