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 7cb5c55f6d..0e81ab2b12 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.55 2025/01/11 13:38:42 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.56 2025/01/11 13:58:31 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,12 +79,6 @@
79 79
80__BEGIN_HIDDEN_DECLS 80__BEGIN_HIDDEN_DECLS
81 81
82#if defined(__SUNPRO_C)
83# if __SUNPRO_C >= 0x520
84# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
85# endif
86#endif
87
88struct ec_method_st { 82struct ec_method_st {
89 int field_type; 83 int field_type;
90 84
@@ -100,6 +94,10 @@ struct ec_method_st {
100 int (*point_set_compressed_coordinates)(const EC_GROUP *, EC_POINT *, 94 int (*point_set_compressed_coordinates)(const EC_GROUP *, EC_POINT *,
101 const BIGNUM *x, int y_bit, BN_CTX *); 95 const BIGNUM *x, int y_bit, BN_CTX *);
102 96
97 /* Only used by the wNAF code. */
98 int (*points_make_affine)(const EC_GROUP *, size_t num, EC_POINT **,
99 BN_CTX *);
100
103 int (*add)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, 101 int (*add)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a,
104 const EC_POINT *b, BN_CTX *); 102 const EC_POINT *b, BN_CTX *);
105 int (*dbl)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *); 103 int (*dbl)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
@@ -109,9 +107,6 @@ struct ec_method_st {
109 int (*point_cmp)(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, 107 int (*point_cmp)(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b,
110 BN_CTX *); 108 BN_CTX *);
111 109
112 int (*points_make_affine)(const EC_GROUP *, size_t num, EC_POINT *[],
113 BN_CTX *);
114
115 int (*mul_generator_ct)(const EC_GROUP *, EC_POINT *r, 110 int (*mul_generator_ct)(const EC_GROUP *, EC_POINT *r,
116 const BIGNUM *scalar, BN_CTX *); 111 const BIGNUM *scalar, BN_CTX *);
117 int (*mul_single_ct)(const EC_GROUP *group, EC_POINT *r, 112 int (*mul_single_ct)(const EC_GROUP *group, EC_POINT *r,