summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/e_camellia.c
diff options
context:
space:
mode:
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 6d9bedbbcd..55dcc79922 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.19 2024/01/04 17:38:36 tb Exp $ */ 1/* $OpenBSD: e_camellia.c,v 1.20 2024/04/09 13:52:41 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 *
@@ -178,6 +178,7 @@ EVP_camellia_128_cbc(void)
178{ 178{
179 return &camellia_128_cbc; 179 return &camellia_128_cbc;
180} 180}
181LCRYPTO_ALIAS(EVP_camellia_128_cbc);
181 182
182static const EVP_CIPHER camellia_128_cfb128 = { 183static const EVP_CIPHER camellia_128_cfb128 = {
183 .nid = NID_camellia_128_cfb128, 184 .nid = NID_camellia_128_cfb128,
@@ -199,6 +200,7 @@ EVP_camellia_128_cfb128(void)
199{ 200{
200 return &camellia_128_cfb128; 201 return &camellia_128_cfb128;
201} 202}
203LCRYPTO_ALIAS(EVP_camellia_128_cfb128);
202 204
203static const EVP_CIPHER camellia_128_ofb = { 205static const EVP_CIPHER camellia_128_ofb = {
204 .nid = NID_camellia_128_ofb128, 206 .nid = NID_camellia_128_ofb128,
@@ -220,6 +222,7 @@ EVP_camellia_128_ofb(void)
220{ 222{
221 return &camellia_128_ofb; 223 return &camellia_128_ofb;
222} 224}
225LCRYPTO_ALIAS(EVP_camellia_128_ofb);
223 226
224static const EVP_CIPHER camellia_128_ecb = { 227static const EVP_CIPHER camellia_128_ecb = {
225 .nid = NID_camellia_128_ecb, 228 .nid = NID_camellia_128_ecb,
@@ -241,6 +244,7 @@ EVP_camellia_128_ecb(void)
241{ 244{
242 return &camellia_128_ecb; 245 return &camellia_128_ecb;
243} 246}
247LCRYPTO_ALIAS(EVP_camellia_128_ecb);
244 248
245static int 249static int
246camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 250camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -332,6 +336,7 @@ EVP_camellia_192_cbc(void)
332{ 336{
333 return &camellia_192_cbc; 337 return &camellia_192_cbc;
334} 338}
339LCRYPTO_ALIAS(EVP_camellia_192_cbc);
335 340
336static const EVP_CIPHER camellia_192_cfb128 = { 341static const EVP_CIPHER camellia_192_cfb128 = {
337 .nid = NID_camellia_192_cfb128, 342 .nid = NID_camellia_192_cfb128,
@@ -353,6 +358,7 @@ EVP_camellia_192_cfb128(void)
353{ 358{
354 return &camellia_192_cfb128; 359 return &camellia_192_cfb128;
355} 360}
361LCRYPTO_ALIAS(EVP_camellia_192_cfb128);
356 362
357static const EVP_CIPHER camellia_192_ofb = { 363static const EVP_CIPHER camellia_192_ofb = {
358 .nid = NID_camellia_192_ofb128, 364 .nid = NID_camellia_192_ofb128,
@@ -374,6 +380,7 @@ EVP_camellia_192_ofb(void)
374{ 380{
375 return &camellia_192_ofb; 381 return &camellia_192_ofb;
376} 382}
383LCRYPTO_ALIAS(EVP_camellia_192_ofb);
377 384
378static const EVP_CIPHER camellia_192_ecb = { 385static const EVP_CIPHER camellia_192_ecb = {
379 .nid = NID_camellia_192_ecb, 386 .nid = NID_camellia_192_ecb,
@@ -395,6 +402,7 @@ EVP_camellia_192_ecb(void)
395{ 402{
396 return &camellia_192_ecb; 403 return &camellia_192_ecb;
397} 404}
405LCRYPTO_ALIAS(EVP_camellia_192_ecb);
398 406
399static int 407static int
400camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 408camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -486,6 +494,7 @@ EVP_camellia_256_cbc(void)
486{ 494{
487 return &camellia_256_cbc; 495 return &camellia_256_cbc;
488} 496}
497LCRYPTO_ALIAS(EVP_camellia_256_cbc);
489 498
490static const EVP_CIPHER camellia_256_cfb128 = { 499static const EVP_CIPHER camellia_256_cfb128 = {
491 .nid = NID_camellia_256_cfb128, 500 .nid = NID_camellia_256_cfb128,
@@ -507,6 +516,7 @@ EVP_camellia_256_cfb128(void)
507{ 516{
508 return &camellia_256_cfb128; 517 return &camellia_256_cfb128;
509} 518}
519LCRYPTO_ALIAS(EVP_camellia_256_cfb128);
510 520
511static const EVP_CIPHER camellia_256_ofb = { 521static const EVP_CIPHER camellia_256_ofb = {
512 .nid = NID_camellia_256_ofb128, 522 .nid = NID_camellia_256_ofb128,
@@ -528,6 +538,7 @@ EVP_camellia_256_ofb(void)
528{ 538{
529 return &camellia_256_ofb; 539 return &camellia_256_ofb;
530} 540}
541LCRYPTO_ALIAS(EVP_camellia_256_ofb);
531 542
532static const EVP_CIPHER camellia_256_ecb = { 543static const EVP_CIPHER camellia_256_ecb = {
533 .nid = NID_camellia_256_ecb, 544 .nid = NID_camellia_256_ecb,
@@ -549,6 +560,7 @@ EVP_camellia_256_ecb(void)
549{ 560{
550 return &camellia_256_ecb; 561 return &camellia_256_ecb;
551} 562}
563LCRYPTO_ALIAS(EVP_camellia_256_ecb);
552 564
553static int 565static int
554camellia_128_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 566camellia_128_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -592,6 +604,7 @@ EVP_camellia_128_cfb1(void)
592{ 604{
593 return &camellia_128_cfb1; 605 return &camellia_128_cfb1;
594} 606}
607LCRYPTO_ALIAS(EVP_camellia_128_cfb1);
595 608
596static int 609static int
597camellia_192_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 610camellia_192_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -635,6 +648,7 @@ EVP_camellia_192_cfb1(void)
635{ 648{
636 return &camellia_192_cfb1; 649 return &camellia_192_cfb1;
637} 650}
651LCRYPTO_ALIAS(EVP_camellia_192_cfb1);
638 652
639static int 653static int
640camellia_256_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 654camellia_256_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -678,6 +692,7 @@ EVP_camellia_256_cfb1(void)
678{ 692{
679 return &camellia_256_cfb1; 693 return &camellia_256_cfb1;
680} 694}
695LCRYPTO_ALIAS(EVP_camellia_256_cfb1);
681 696
682 697
683static int 698static int
@@ -720,6 +735,7 @@ EVP_camellia_128_cfb8(void)
720{ 735{
721 return &camellia_128_cfb8; 736 return &camellia_128_cfb8;
722} 737}
738LCRYPTO_ALIAS(EVP_camellia_128_cfb8);
723 739
724static int 740static int
725camellia_192_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 741camellia_192_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -761,6 +777,7 @@ EVP_camellia_192_cfb8(void)
761{ 777{
762 return &camellia_192_cfb8; 778 return &camellia_192_cfb8;
763} 779}
780LCRYPTO_ALIAS(EVP_camellia_192_cfb8);
764 781
765static int 782static int
766camellia_256_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) 783camellia_256_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)
@@ -802,4 +819,5 @@ EVP_camellia_256_cfb8(void)
802{ 819{
803 return &camellia_256_cfb8; 820 return &camellia_256_cfb8;
804} 821}
822LCRYPTO_ALIAS(EVP_camellia_256_cfb8);
805#endif 823#endif