summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/e_camellia.c
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/evp/e_camellia.c
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/evp/e_camellia.c')
-rw-r--r--src/lib/libcrypto/evp/e_camellia.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/e_camellia.c b/src/lib/libcrypto/evp/e_camellia.c
index 884f8cef2a..0ab6e9ca60 100644
--- a/src/lib/libcrypto/evp/e_camellia.c
+++ b/src/lib/libcrypto/evp/e_camellia.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: e_camellia.c,v 1.16 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: e_camellia.c,v 1.17 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -179,6 +179,7 @@ EVP_camellia_128_cbc(void)
179{ 179{
180 return &camellia_128_cbc; 180 return &camellia_128_cbc;
181} 181}
182LCRYPTO_ALIAS(EVP_camellia_128_cbc);
182 183
183static const EVP_CIPHER camellia_128_cfb128 = { 184static const EVP_CIPHER camellia_128_cfb128 = {
184 .nid = NID_camellia_128_cfb128, 185 .nid = NID_camellia_128_cfb128,
@@ -201,6 +202,7 @@ EVP_camellia_128_cfb128(void)
201{ 202{
202 return &camellia_128_cfb128; 203 return &camellia_128_cfb128;
203} 204}
205LCRYPTO_ALIAS(EVP_camellia_128_cfb128);
204 206
205static const EVP_CIPHER camellia_128_ofb = { 207static const EVP_CIPHER camellia_128_ofb = {
206 .nid = NID_camellia_128_ofb128, 208 .nid = NID_camellia_128_ofb128,
@@ -223,6 +225,7 @@ EVP_camellia_128_ofb(void)
223{ 225{
224 return &camellia_128_ofb; 226 return &camellia_128_ofb;
225} 227}
228LCRYPTO_ALIAS(EVP_camellia_128_ofb);
226 229
227static const EVP_CIPHER camellia_128_ecb = { 230static const EVP_CIPHER camellia_128_ecb = {
228 .nid = NID_camellia_128_ecb, 231 .nid = NID_camellia_128_ecb,
@@ -245,6 +248,7 @@ EVP_camellia_128_ecb(void)
245{ 248{
246 return &camellia_128_ecb; 249 return &camellia_128_ecb;
247} 250}
251LCRYPTO_ALIAS(EVP_camellia_128_ecb);
248 252
249static int 253static int
250camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 254camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -337,6 +341,7 @@ EVP_camellia_192_cbc(void)
337{ 341{
338 return &camellia_192_cbc; 342 return &camellia_192_cbc;
339} 343}
344LCRYPTO_ALIAS(EVP_camellia_192_cbc);
340 345
341static const EVP_CIPHER camellia_192_cfb128 = { 346static const EVP_CIPHER camellia_192_cfb128 = {
342 .nid = NID_camellia_192_cfb128, 347 .nid = NID_camellia_192_cfb128,
@@ -359,6 +364,7 @@ EVP_camellia_192_cfb128(void)
359{ 364{
360 return &camellia_192_cfb128; 365 return &camellia_192_cfb128;
361} 366}
367LCRYPTO_ALIAS(EVP_camellia_192_cfb128);
362 368
363static const EVP_CIPHER camellia_192_ofb = { 369static const EVP_CIPHER camellia_192_ofb = {
364 .nid = NID_camellia_192_ofb128, 370 .nid = NID_camellia_192_ofb128,
@@ -381,6 +387,7 @@ EVP_camellia_192_ofb(void)
381{ 387{
382 return &camellia_192_ofb; 388 return &camellia_192_ofb;
383} 389}
390LCRYPTO_ALIAS(EVP_camellia_192_ofb);
384 391
385static const EVP_CIPHER camellia_192_ecb = { 392static const EVP_CIPHER camellia_192_ecb = {
386 .nid = NID_camellia_192_ecb, 393 .nid = NID_camellia_192_ecb,
@@ -403,6 +410,7 @@ EVP_camellia_192_ecb(void)
403{ 410{
404 return &camellia_192_ecb; 411 return &camellia_192_ecb;
405} 412}
413LCRYPTO_ALIAS(EVP_camellia_192_ecb);
406 414
407static int 415static int
408camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 416camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -495,6 +503,7 @@ EVP_camellia_256_cbc(void)
495{ 503{
496 return &camellia_256_cbc; 504 return &camellia_256_cbc;
497} 505}
506LCRYPTO_ALIAS(EVP_camellia_256_cbc);
498 507
499static const EVP_CIPHER camellia_256_cfb128 = { 508static const EVP_CIPHER camellia_256_cfb128 = {
500 .nid = NID_camellia_256_cfb128, 509 .nid = NID_camellia_256_cfb128,
@@ -517,6 +526,7 @@ EVP_camellia_256_cfb128(void)
517{ 526{
518 return &camellia_256_cfb128; 527 return &camellia_256_cfb128;
519} 528}
529LCRYPTO_ALIAS(EVP_camellia_256_cfb128);
520 530
521static const EVP_CIPHER camellia_256_ofb = { 531static const EVP_CIPHER camellia_256_ofb = {
522 .nid = NID_camellia_256_ofb128, 532 .nid = NID_camellia_256_ofb128,
@@ -539,6 +549,7 @@ EVP_camellia_256_ofb(void)
539{ 549{
540 return &camellia_256_ofb; 550 return &camellia_256_ofb;
541} 551}
552LCRYPTO_ALIAS(EVP_camellia_256_ofb);
542 553
543static const EVP_CIPHER camellia_256_ecb = { 554static const EVP_CIPHER camellia_256_ecb = {
544 .nid = NID_camellia_256_ecb, 555 .nid = NID_camellia_256_ecb,
@@ -561,6 +572,7 @@ EVP_camellia_256_ecb(void)
561{ 572{
562 return &camellia_256_ecb; 573 return &camellia_256_ecb;
563} 574}
575LCRYPTO_ALIAS(EVP_camellia_256_ecb);
564 576
565static int 577static int
566camellia_128_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 578camellia_128_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -605,6 +617,7 @@ EVP_camellia_128_cfb1(void)
605{ 617{
606 return &camellia_128_cfb1; 618 return &camellia_128_cfb1;
607} 619}
620LCRYPTO_ALIAS(EVP_camellia_128_cfb1);
608 621
609static int 622static int
610camellia_192_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 623camellia_192_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -649,6 +662,7 @@ EVP_camellia_192_cfb1(void)
649{ 662{
650 return &camellia_192_cfb1; 663 return &camellia_192_cfb1;
651} 664}
665LCRYPTO_ALIAS(EVP_camellia_192_cfb1);
652 666
653static int 667static int
654camellia_256_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 668camellia_256_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -693,6 +707,7 @@ EVP_camellia_256_cfb1(void)
693{ 707{
694 return &camellia_256_cfb1; 708 return &camellia_256_cfb1;
695} 709}
710LCRYPTO_ALIAS(EVP_camellia_256_cfb1);
696 711
697 712
698static int 713static int
@@ -736,6 +751,7 @@ EVP_camellia_128_cfb8(void)
736{ 751{
737 return &camellia_128_cfb8; 752 return &camellia_128_cfb8;
738} 753}
754LCRYPTO_ALIAS(EVP_camellia_128_cfb8);
739 755
740static int 756static int
741camellia_192_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 757camellia_192_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -778,6 +794,7 @@ EVP_camellia_192_cfb8(void)
778{ 794{
779 return &camellia_192_cfb8; 795 return &camellia_192_cfb8;
780} 796}
797LCRYPTO_ALIAS(EVP_camellia_192_cfb8);
781 798
782static int 799static int
783camellia_256_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 800camellia_256_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -820,4 +837,5 @@ EVP_camellia_256_cfb8(void)
820{ 837{
821 return &camellia_256_cfb8; 838 return &camellia_256_cfb8;
822} 839}
840LCRYPTO_ALIAS(EVP_camellia_256_cfb8);
823#endif 841#endif