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/evp/e_sm4.c | |
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/evp/e_sm4.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_sm4.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/e_sm4.c b/src/lib/libcrypto/evp/e_sm4.c index 0d37448109..705a914821 100644 --- a/src/lib/libcrypto/evp/e_sm4.c +++ b/src/lib/libcrypto/evp/e_sm4.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_sm4.c,v 1.7 2022/11/26 16:08:52 tb Exp $ */ | 1 | /* $OpenBSD: e_sm4.c,v 1.8 2023/07/07 13:54:45 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
4 | * | 4 | * |
@@ -165,6 +165,7 @@ EVP_sm4_cbc(void) | |||
165 | { | 165 | { |
166 | return &sm4_cbc; | 166 | return &sm4_cbc; |
167 | } | 167 | } |
168 | LCRYPTO_ALIAS(EVP_sm4_cbc); | ||
168 | 169 | ||
169 | static const EVP_CIPHER sm4_cfb128 = { | 170 | static const EVP_CIPHER sm4_cfb128 = { |
170 | .nid = NID_sm4_cfb128, | 171 | .nid = NID_sm4_cfb128, |
@@ -187,6 +188,7 @@ EVP_sm4_cfb128(void) | |||
187 | { | 188 | { |
188 | return &sm4_cfb128; | 189 | return &sm4_cfb128; |
189 | } | 190 | } |
191 | LCRYPTO_ALIAS(EVP_sm4_cfb128); | ||
190 | 192 | ||
191 | static const EVP_CIPHER sm4_ofb = { | 193 | static const EVP_CIPHER sm4_ofb = { |
192 | .nid = NID_sm4_ofb128, | 194 | .nid = NID_sm4_ofb128, |
@@ -209,6 +211,7 @@ EVP_sm4_ofb(void) | |||
209 | { | 211 | { |
210 | return &sm4_ofb; | 212 | return &sm4_ofb; |
211 | } | 213 | } |
214 | LCRYPTO_ALIAS(EVP_sm4_ofb); | ||
212 | 215 | ||
213 | static const EVP_CIPHER sm4_ecb = { | 216 | static const EVP_CIPHER sm4_ecb = { |
214 | .nid = NID_sm4_ecb, | 217 | .nid = NID_sm4_ecb, |
@@ -231,6 +234,7 @@ EVP_sm4_ecb(void) | |||
231 | { | 234 | { |
232 | return &sm4_ecb; | 235 | return &sm4_ecb; |
233 | } | 236 | } |
237 | LCRYPTO_ALIAS(EVP_sm4_ecb); | ||
234 | 238 | ||
235 | static int | 239 | static int |
236 | sm4_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, | 240 | sm4_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, |
@@ -264,4 +268,5 @@ EVP_sm4_ctr(void) | |||
264 | { | 268 | { |
265 | return &sm4_ctr_mode; | 269 | return &sm4_ctr_mode; |
266 | } | 270 | } |
271 | LCRYPTO_ALIAS(EVP_sm4_ctr); | ||
267 | #endif | 272 | #endif |