diff options
author | beck <> | 2023-07-07 13:54:46 +0000 |
---|---|---|
committer | beck <> | 2023-07-07 13:54:46 +0000 |
commit | 6bba0b0cef45b790c7a98a818e6018c91de8af0b (patch) | |
tree | 8637b2fb4bca234d55b598e035f23335be46ce49 /src/lib/libcrypto/ecdh | |
parent | fcdb286fc308a6ce5c66d8a4653f2e2e6c4903ed (diff) | |
download | openbsd-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.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_err.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_lib.c | 9 |
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 | } |
267 | LCRYPTO_ALIAS(ECDH_compute_key); | ||
267 | 268 | ||
268 | int | 269 | int |
269 | ECDH_size(const EC_KEY *d) | 270 | ECDH_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 | } |
274 | LCRYPTO_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 | } |
94 | LCRYPTO_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 | } |
101 | LCRYPTO_ALIAS(ECDH_OpenSSL); | ||
101 | 102 | ||
102 | void | 103 | void |
103 | ECDH_set_default_method(const ECDH_METHOD *meth) | 104 | ECDH_set_default_method(const ECDH_METHOD *meth) |
104 | { | 105 | { |
105 | default_ECDH_method = meth; | 106 | default_ECDH_method = meth; |
106 | } | 107 | } |
108 | LCRYPTO_ALIAS(ECDH_set_default_method); | ||
107 | 109 | ||
108 | const ECDH_METHOD * | 110 | const ECDH_METHOD * |
109 | ECDH_get_default_method(void) | 111 | ECDH_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 | } |
118 | LCRYPTO_ALIAS(ECDH_get_default_method); | ||
116 | 119 | ||
117 | int | 120 | int |
118 | ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) | 121 | ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) |
119 | { | 122 | { |
120 | return 0; | 123 | return 0; |
121 | } | 124 | } |
125 | LCRYPTO_ALIAS(ECDH_set_method); | ||
122 | 126 | ||
123 | int | 127 | int |
124 | ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 128 | ECDH_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 | } |
133 | LCRYPTO_ALIAS(ECDH_get_ex_new_index); | ||
129 | 134 | ||
130 | int | 135 | int |
131 | ECDH_set_ex_data(EC_KEY *d, int idx, void *arg) | 136 | ECDH_set_ex_data(EC_KEY *d, int idx, void *arg) |
132 | { | 137 | { |
133 | return 0; | 138 | return 0; |
134 | } | 139 | } |
140 | LCRYPTO_ALIAS(ECDH_set_ex_data); | ||
135 | 141 | ||
136 | void * | 142 | void * |
137 | ECDH_get_ex_data(EC_KEY *d, int idx) | 143 | ECDH_get_ex_data(EC_KEY *d, int idx) |
138 | { | 144 | { |
139 | return NULL; | 145 | return NULL; |
140 | } | 146 | } |
147 | LCRYPTO_ALIAS(ECDH_get_ex_data); | ||