summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-06-27 07:31:18 +0000
committertb <>2023-06-27 07:31:18 +0000
commit21a3389ff1105bddb45283f5d32980bc6a261715 (patch)
tree839c8407900ba75bbb195425002874b135a7b346 /src
parent47d329e117fd979837c817f1ee34eca6575c342f (diff)
downloadopenbsd-21a3389ff1105bddb45283f5d32980bc6a261715.tar.gz
openbsd-21a3389ff1105bddb45283f5d32980bc6a261715.tar.bz2
openbsd-21a3389ff1105bddb45283f5d32980bc6a261715.zip
Remove the now unused poly[] from EC_GROUP
This was needed for defining the multiplication over binary fields. Since that code is gone, this is no longer needed. ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 9bdc3e7337..a058878a69 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.21 2023/06/25 19:22:21 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.22 2023/06/27 07:31: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 */
@@ -206,21 +206,8 @@ struct ec_group_st {
206 BIGNUM field; 206 BIGNUM field;
207 207
208 /* 208 /*
209 * Field specification for GF(2^m). The irreducible polynomial is
210 * f(t) = t^poly[0] + t^poly[1] + ... + t^poly[k],
211 * where
212 * m = poly[0] > poly[1] > ... > poly[k] = 0,
213 * and the array is terminated with poly[k+1] = -1. All elliptic curve
214 * irreducibles have at most 5 non-zero terms.
215 */
216 int poly[6];
217
218 /*
219 * Curve coefficients. In characteristic > 3, the curve is defined by a 209 * Curve coefficients. In characteristic > 3, the curve is defined by a
220 * Weierstrass equation of the form 210 * Weierstrass equation of the form y^2 = x^3 + a*x + b.
221 * y^2 = x^3 + a*x + b.
222 * For characteristic 2, the curve is defined by an equation of the form
223 * y^2 + x*y = x^3 + a*x^2 + b.
224 */ 211 */
225 BIGNUM a, b; 212 BIGNUM a, b;
226 213