summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index d1e3c1fa4a..9c188c0197 100644
--- a/src/lib/libcrypto/ec/ec_local.h
+++ b/src/lib/libcrypto/ec/ec_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_local.h,v 1.65 2025/01/25 13:15:21 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.66 2025/03/09 15:33:35 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 */
@@ -79,7 +79,7 @@
79 79
80__BEGIN_HIDDEN_DECLS 80__BEGIN_HIDDEN_DECLS
81 81
82struct ec_method_st { 82typedef struct ec_method_st {
83 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, 83 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
84 const BIGNUM *b, BN_CTX *); 84 const BIGNUM *b, BN_CTX *);
85 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, 85 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a,
@@ -124,7 +124,7 @@ struct ec_method_st {
124 BN_CTX *); 124 BN_CTX *);
125 int (*field_decode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, 125 int (*field_decode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a,
126 BN_CTX *); 126 BN_CTX *);
127} /* EC_METHOD */; 127} EC_METHOD;
128 128
129struct ec_group_st { 129struct ec_group_st {
130 const EC_METHOD *meth; 130 const EC_METHOD *meth;
@@ -170,6 +170,9 @@ struct ec_point_st {
170 int Z_is_one; /* enable optimized point arithmetics for special case */ 170 int Z_is_one; /* enable optimized point arithmetics for special case */
171} /* EC_POINT */; 171} /* EC_POINT */;
172 172
173const EC_METHOD *EC_GFp_simple_method(void);
174const EC_METHOD *EC_GFp_mont_method(void);
175
173/* Compute r = generator * m + point * n in non-constant time. */ 176/* Compute r = generator * m + point * n in non-constant time. */
174int ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, 177int ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m,
175 const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx); 178 const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx);