summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_local.h
diff options
context:
space:
mode:
authorjsing <>2025-01-22 09:56:58 +0000
committerjsing <>2025-01-22 09:56:58 +0000
commit366d7bbfad8ab89b0d053361f974a01a882bd2df (patch)
treed2ec6435082a34e334b6f6b0786fa0de6fecc1c7 /src/lib/libcrypto/ec/ec_local.h
parent60d9ada94567fdf756caa5632ebe42512982d45c (diff)
downloadopenbsd-366d7bbfad8ab89b0d053361f974a01a882bd2df.tar.gz
openbsd-366d7bbfad8ab89b0d053361f974a01a882bd2df.tar.bz2
openbsd-366d7bbfad8ab89b0d053361f974a01a882bd2df.zip
Remove the mul_generator_ct function pointer from EC_METHOD.
There's no need for a separate mul_generator_ct() function pointer - we really only need mul_single_ct() and mul_double_nonct(). And rather than calling ec_mul_ct() and having it figure out which point to use, explicitly pass the generator point when calling mul_single_ct(). ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index afa8b0307f..84c1552c8a 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.62 2025/01/11 20:57:03 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.63 2025/01/22 09:56:58 jsing 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 */
@@ -105,8 +105,6 @@ struct ec_method_st {
105 int (*dbl)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *); 105 int (*dbl)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
106 int (*invert)(const EC_GROUP *, EC_POINT *, BN_CTX *); 106 int (*invert)(const EC_GROUP *, EC_POINT *, BN_CTX *);
107 107
108 int (*mul_generator_ct)(const EC_GROUP *, EC_POINT *r,
109 const BIGNUM *scalar, BN_CTX *);
110 int (*mul_single_ct)(const EC_GROUP *group, EC_POINT *r, 108 int (*mul_single_ct)(const EC_GROUP *group, EC_POINT *r,
111 const BIGNUM *scalar, const EC_POINT *point, BN_CTX *); 109 const BIGNUM *scalar, const EC_POINT *point, BN_CTX *);
112 int (*mul_double_nonct)(const EC_GROUP *group, EC_POINT *r, 110 int (*mul_double_nonct)(const EC_GROUP *group, EC_POINT *r,