summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_local.h
diff options
context:
space:
mode:
authorjsing <>2023-03-07 05:45:14 +0000
committerjsing <>2023-03-07 05:45:14 +0000
commit5ccfeda594a1e00600a37cf1184cfd1ccce1ed0d (patch)
treee8cc747f3c005c616dcd66fe8ac5b63dc612fb7e /src/lib/libcrypto/ec/ec_local.h
parent642e7834e85d3453952cd857c93a9e1b2fba17e4 (diff)
downloadopenbsd-5ccfeda594a1e00600a37cf1184cfd1ccce1ed0d.tar.gz
openbsd-5ccfeda594a1e00600a37cf1184cfd1ccce1ed0d.tar.bz2
openbsd-5ccfeda594a1e00600a37cf1184cfd1ccce1ed0d.zip
Use static functions for EC_GFp_nist_method() implementation.
Move the EC_METHOD to the bottom of the file, which allows implementation functions to become static. Remove unneeded prototypes. ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 1124108d57..677ae0c368 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.7 2023/03/07 05:41:18 jsing Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.8 2023/03/07 05:45:14 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 */
@@ -371,13 +371,6 @@ int ec_GFp_simple_mul_double_nonct(const EC_GROUP *, EC_POINT *r, const BIGNUM *
371 371
372int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); 372int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
373 373
374/* method functions in ecp_nist.c */
375int ec_GFp_nist_group_copy(EC_GROUP *dest, const EC_GROUP *src);
376int ec_GFp_nist_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
377int ec_GFp_nist_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
378int ec_GFp_nist_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
379
380
381/* method functions in ec2_smpl.c */ 374/* method functions in ec2_smpl.c */
382int ec_GF2m_simple_group_init(EC_GROUP *); 375int ec_GF2m_simple_group_init(EC_GROUP *);
383void ec_GF2m_simple_group_finish(EC_GROUP *); 376void ec_GF2m_simple_group_finish(EC_GROUP *);