summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdh
diff options
context:
space:
mode:
authorbeck <>2023-07-07 13:54:46 +0000
committerbeck <>2023-07-07 13:54:46 +0000
commit6bba0b0cef45b790c7a98a818e6018c91de8af0b (patch)
tree8637b2fb4bca234d55b598e035f23335be46ce49 /src/lib/libcrypto/ecdh
parentfcdb286fc308a6ce5c66d8a4653f2e2e6c4903ed (diff)
downloadopenbsd-6bba0b0cef45b790c7a98a818e6018c91de8af0b.tar.gz
openbsd-6bba0b0cef45b790c7a98a818e6018c91de8af0b.tar.bz2
openbsd-6bba0b0cef45b790c7a98a818e6018c91de8af0b.zip
Hide symbols in hkdf, evp, err, ecdsa, and ec
(part 2 of commit) ok jsing@
Diffstat (limited to 'src/lib/libcrypto/ecdh')
-rw-r--r--src/lib/libcrypto/ecdh/ecdh.c4
-rw-r--r--src/lib/libcrypto/ecdh/ech_err.c3
-rw-r--r--src/lib/libcrypto/ecdh/ech_lib.c9
3 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ecdh/ecdh.c b/src/lib/libcrypto/ecdh/ecdh.c
index 1179564030..0781c30e09 100644
--- a/src/lib/libcrypto/ecdh/ecdh.c
+++ b/src/lib/libcrypto/ecdh/ecdh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecdh.c,v 1.3 2023/07/05 17:10:10 tb Exp $ */ 1/* $OpenBSD: ecdh.c,v 1.4 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -264,9 +264,11 @@ ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
264 } 264 }
265 return eckey->meth->compute_key(out, outlen, pub_key, eckey, KDF); 265 return eckey->meth->compute_key(out, outlen, pub_key, eckey, KDF);
266} 266}
267LCRYPTO_ALIAS(ECDH_compute_key);
267 268
268int 269int
269ECDH_size(const EC_KEY *d) 270ECDH_size(const EC_KEY *d)
270{ 271{
271 return (EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8; 272 return (EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8;
272} 273}
274LCRYPTO_ALIAS(ECDH_size);
diff --git a/src/lib/libcrypto/ecdh/ech_err.c b/src/lib/libcrypto/ecdh/ech_err.c
index e0cfddfe9c..1b194fe0fb 100644
--- a/src/lib/libcrypto/ecdh/ech_err.c
+++ b/src/lib/libcrypto/ecdh/ech_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ech_err.c,v 1.7 2022/07/12 14:42:49 kn Exp $ */ 1/* $OpenBSD: ech_err.c,v 1.8 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -91,3 +91,4 @@ ERR_load_ECDH_strings(void)
91 } 91 }
92#endif 92#endif
93} 93}
94LCRYPTO_ALIAS(ERR_load_ECDH_strings);
diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c
index 52019b01c1..c8e5744c0a 100644
--- a/src/lib/libcrypto/ecdh/ech_lib.c
+++ b/src/lib/libcrypto/ecdh/ech_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ech_lib.c,v 1.23 2023/07/05 08:39:40 tb Exp $ */ 1/* $OpenBSD: ech_lib.c,v 1.24 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -98,12 +98,14 @@ ECDH_OpenSSL(void)
98{ 98{
99 return &openssl_ecdh_meth; 99 return &openssl_ecdh_meth;
100} 100}
101LCRYPTO_ALIAS(ECDH_OpenSSL);
101 102
102void 103void
103ECDH_set_default_method(const ECDH_METHOD *meth) 104ECDH_set_default_method(const ECDH_METHOD *meth)
104{ 105{
105 default_ECDH_method = meth; 106 default_ECDH_method = meth;
106} 107}
108LCRYPTO_ALIAS(ECDH_set_default_method);
107 109
108const ECDH_METHOD * 110const ECDH_METHOD *
109ECDH_get_default_method(void) 111ECDH_get_default_method(void)
@@ -113,12 +115,14 @@ ECDH_get_default_method(void)
113 } 115 }
114 return default_ECDH_method; 116 return default_ECDH_method;
115} 117}
118LCRYPTO_ALIAS(ECDH_get_default_method);
116 119
117int 120int
118ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) 121ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth)
119{ 122{
120 return 0; 123 return 0;
121} 124}
125LCRYPTO_ALIAS(ECDH_set_method);
122 126
123int 127int
124ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, 128ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
@@ -126,15 +130,18 @@ ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
126{ 130{
127 return -1; 131 return -1;
128} 132}
133LCRYPTO_ALIAS(ECDH_get_ex_new_index);
129 134
130int 135int
131ECDH_set_ex_data(EC_KEY *d, int idx, void *arg) 136ECDH_set_ex_data(EC_KEY *d, int idx, void *arg)
132{ 137{
133 return 0; 138 return 0;
134} 139}
140LCRYPTO_ALIAS(ECDH_set_ex_data);
135 141
136void * 142void *
137ECDH_get_ex_data(EC_KEY *d, int idx) 143ECDH_get_ex_data(EC_KEY *d, int idx)
138{ 144{
139 return NULL; 145 return NULL;
140} 146}
147LCRYPTO_ALIAS(ECDH_get_ex_data);