summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_local.h
diff options
context:
space:
mode:
authorjsing <>2023-03-04 14:38:00 +0000
committerjsing <>2023-03-04 14:38:00 +0000
commite93b09fa751b09cd5cd85c041389468b31a87969 (patch)
tree02ba1f7650d9ab5893c2668214514a9103855b8f /src/lib/libcrypto/ec/ec_local.h
parentb1fae0e7a40efd6fd7973b0f8d56a2a501c4ca9a (diff)
downloadopenbsd-e93b09fa751b09cd5cd85c041389468b31a87969.tar.gz
openbsd-e93b09fa751b09cd5cd85c041389468b31a87969.tar.bz2
openbsd-e93b09fa751b09cd5cd85c041389468b31a87969.zip
Rename field_data1 and field_data2.
Rather than pretending that these "generic" variables are used for multiple things, rename them to reflect their actual usage and use appropriate types instead of void *. ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 5fc9bfebbb..e1240bf6a8 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.1 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.2 2023/03/04 14:38:00 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 */
@@ -251,8 +251,10 @@ struct ec_group_st {
251 /* Enables optimized point arithmetics for special case. */ 251 /* Enables optimized point arithmetics for special case. */
252 int a_is_minus3; 252 int a_is_minus3;
253 253
254 void *field_data1; 254 /* Montgomery context and values used by EC_GFp_mont_method. */
255 void *field_data2; 255 BN_MONT_CTX *mont_ctx;
256 BIGNUM *mont_one;
257
256 int (*field_mod_func)(BIGNUM *, const BIGNUM *, const BIGNUM *, 258 int (*field_mod_func)(BIGNUM *, const BIGNUM *, const BIGNUM *,
257 BN_CTX *); 259 BN_CTX *);
258} /* EC_GROUP */; 260} /* EC_GROUP */;