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.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index da706d5324..ea1cd7adad 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.42 2024/12/06 15:49:37 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.43 2024/12/12 10:00:15 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 */
@@ -181,16 +181,11 @@ struct ec_group_st {
181 */ 181 */
182 182
183 /* 183 /*
184 * Field specification. For GF(p) this is the modulus; for GF(2^m), 184 * Coefficients of the Weierstrass equation y^2 = x^3 + a*x + b (mod p).
185 * this is the irreducible polynomial defining the field.
186 */ 185 */
187 BIGNUM field; 186 BIGNUM p;
188 187 BIGNUM a;
189 /* 188 BIGNUM b;
190 * Curve coefficients. In characteristic > 3, the curve is defined by a
191 * Weierstrass equation of the form y^2 = x^3 + a*x + b.
192 */
193 BIGNUM a, b;
194 189
195 /* Enables optimized point arithmetics for special case. */ 190 /* Enables optimized point arithmetics for special case. */
196 int a_is_minus3; 191 int a_is_minus3;