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.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index cc918b38fd..0d734351de 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.45 2025/01/01 10:01:31 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.46 2025/01/05 16:07:08 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 */
@@ -160,8 +160,8 @@ struct ec_group_st {
160 const EC_METHOD *meth; 160 const EC_METHOD *meth;
161 161
162 EC_POINT *generator; /* Optional */ 162 EC_POINT *generator; /* Optional */
163 BIGNUM order; 163 BIGNUM *order;
164 BIGNUM cofactor; 164 BIGNUM *cofactor;
165 165
166 int nid; /* Optional NID for named curve. */ 166 int nid; /* Optional NID for named curve. */
167 167
@@ -181,9 +181,9 @@ struct ec_group_st {
181 /* 181 /*
182 * Coefficients of the Weierstrass equation y^2 = x^3 + a*x + b (mod p). 182 * Coefficients of the Weierstrass equation y^2 = x^3 + a*x + b (mod p).
183 */ 183 */
184 BIGNUM p; 184 BIGNUM *p;
185 BIGNUM a; 185 BIGNUM *a;
186 BIGNUM b; 186 BIGNUM *b;
187 187
188 /* Enables optimized point arithmetics for special case. */ 188 /* Enables optimized point arithmetics for special case. */
189 int a_is_minus3; 189 int a_is_minus3;
@@ -216,17 +216,12 @@ struct ec_point_st {
216 const EC_METHOD *meth; 216 const EC_METHOD *meth;
217 217
218 /* 218 /*
219 * All members except 'meth' are handled by the method functions,
220 * even if they appear generic.
221 */
222
223 /*
224 * Jacobian projective coordinates: (X, Y, Z) represents (X/Z^2, Y/Z^3) 219 * Jacobian projective coordinates: (X, Y, Z) represents (X/Z^2, Y/Z^3)
225 * if Z != 0 220 * if Z != 0
226 */ 221 */
227 BIGNUM X; 222 BIGNUM *X;
228 BIGNUM Y; 223 BIGNUM *Y;
229 BIGNUM Z; 224 BIGNUM *Z;
230 int Z_is_one; /* enable optimized point arithmetics for special case */ 225 int Z_is_one; /* enable optimized point arithmetics for special case */
231} /* EC_POINT */; 226} /* EC_POINT */;
232 227