summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_cipher.c
diff options
context:
space:
mode:
authorbeck <>2024-04-09 13:52:42 +0000
committerbeck <>2024-04-09 13:52:42 +0000
commitb8c1a99fdb41738feb7a1352029c5f5aa42fed86 (patch)
treeb9ee99887d6be79187ba476e0f6ac92f0820775f /src/lib/libcrypto/evp/evp_cipher.c
parent94d86681cdef7dae37d5ce494a200523ce63b70c (diff)
downloadopenbsd-b8c1a99fdb41738feb7a1352029c5f5aa42fed86.tar.gz
openbsd-b8c1a99fdb41738feb7a1352029c5f5aa42fed86.tar.bz2
openbsd-b8c1a99fdb41738feb7a1352029c5f5aa42fed86.zip
Hide public symbols in evp.h
largely mechanically done by the guentherizer 9000 ok tb@
Diffstat (limited to 'src/lib/libcrypto/evp/evp_cipher.c')
-rw-r--r--src/lib/libcrypto/evp/evp_cipher.c59
1 files changed, 58 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_cipher.c b/src/lib/libcrypto/evp/evp_cipher.c
index 48aaea0f1b..c4b5034c25 100644
--- a/src/lib/libcrypto/evp/evp_cipher.c
+++ b/src/lib/libcrypto/evp/evp_cipher.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_cipher.c,v 1.21 2024/03/02 09:55:30 tb Exp $ */ 1/* $OpenBSD: evp_cipher.c,v 1.22 2024/04/09 13:52:41 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -127,6 +127,7 @@ EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
127{ 127{
128 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc); 128 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc);
129} 129}
130LCRYPTO_ALIAS(EVP_CipherInit);
130 131
131int 132int
132EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, 133EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine,
@@ -242,6 +243,7 @@ EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine,
242 243
243 return 1; 244 return 1;
244} 245}
246LCRYPTO_ALIAS(EVP_CipherInit_ex);
245 247
246int 248int
247EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, 249EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len,
@@ -252,6 +254,7 @@ EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len,
252 254
253 return EVP_DecryptUpdate(ctx, out, out_len, in, in_len); 255 return EVP_DecryptUpdate(ctx, out, out_len, in, in_len);
254} 256}
257LCRYPTO_ALIAS(EVP_CipherUpdate);
255 258
256int 259int
257EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) 260EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
@@ -270,6 +273,7 @@ EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
270 273
271 return EVP_DecryptFinal_ex(ctx, out, out_len); 274 return EVP_DecryptFinal_ex(ctx, out, out_len);
272} 275}
276LCRYPTO_ALIAS(EVP_CipherFinal_ex);
273 277
274int 278int
275EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, 279EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
@@ -277,6 +281,7 @@ EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
277{ 281{
278 return EVP_CipherInit(ctx, cipher, key, iv, 1); 282 return EVP_CipherInit(ctx, cipher, key, iv, 1);
279} 283}
284LCRYPTO_ALIAS(EVP_EncryptInit);
280 285
281int 286int
282EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, 287EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine,
@@ -284,6 +289,7 @@ EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine
284{ 289{
285 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1); 290 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1);
286} 291}
292LCRYPTO_ALIAS(EVP_EncryptInit_ex);
287 293
288/* 294/*
289 * EVP_Cipher() is an implementation detail of EVP_Cipher{Update,Final}(). 295 * EVP_Cipher() is an implementation detail of EVP_Cipher{Update,Final}().
@@ -303,6 +309,7 @@ EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in,
303{ 309{
304 return ctx->cipher->do_cipher(ctx, out, in, in_len); 310 return ctx->cipher->do_cipher(ctx, out, in, in_len);
305} 311}
312LCRYPTO_ALIAS(EVP_Cipher);
306 313
307static int 314static int
308evp_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, 315evp_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len,
@@ -413,6 +420,7 @@ EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len,
413 420
414 return 1; 421 return 1;
415} 422}
423LCRYPTO_ALIAS(EVP_EncryptUpdate);
416 424
417int 425int
418EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) 426EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
@@ -453,6 +461,7 @@ EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
453 461
454 return evp_cipher(ctx, out, out_len, ctx->buf, block_size); 462 return evp_cipher(ctx, out, out_len, ctx->buf, block_size);
455} 463}
464LCRYPTO_ALIAS(EVP_EncryptFinal_ex);
456 465
457int 466int
458EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, 467EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
@@ -460,6 +469,7 @@ EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
460{ 469{
461 return EVP_CipherInit(ctx, cipher, key, iv, 0); 470 return EVP_CipherInit(ctx, cipher, key, iv, 0);
462} 471}
472LCRYPTO_ALIAS(EVP_DecryptInit);
463 473
464int 474int
465EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, 475EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine,
@@ -467,6 +477,7 @@ EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine
467{ 477{
468 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0); 478 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0);
469} 479}
480LCRYPTO_ALIAS(EVP_DecryptInit_ex);
470 481
471int 482int
472EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, 483EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len,
@@ -536,6 +547,7 @@ EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len,
536 547
537 return 1; 548 return 1;
538} 549}
550LCRYPTO_ALIAS(EVP_DecryptUpdate);
539 551
540int 552int
541EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) 553EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
@@ -594,12 +606,14 @@ EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
594 606
595 return 1; 607 return 1;
596} 608}
609LCRYPTO_ALIAS(EVP_DecryptFinal_ex);
597 610
598EVP_CIPHER_CTX * 611EVP_CIPHER_CTX *
599EVP_CIPHER_CTX_new(void) 612EVP_CIPHER_CTX_new(void)
600{ 613{
601 return calloc(1, sizeof(EVP_CIPHER_CTX)); 614 return calloc(1, sizeof(EVP_CIPHER_CTX));
602} 615}
616LCRYPTO_ALIAS(EVP_CIPHER_CTX_new);
603 617
604void 618void
605EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) 619EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
@@ -611,6 +625,7 @@ EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
611 625
612 free(ctx); 626 free(ctx);
613} 627}
628LCRYPTO_ALIAS(EVP_CIPHER_CTX_free);
614 629
615void 630void
616EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx) 631EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx)
@@ -629,6 +644,7 @@ EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx)
629{ 644{
630 return EVP_CIPHER_CTX_cleanup(ctx); 645 return EVP_CIPHER_CTX_cleanup(ctx);
631} 646}
647LCRYPTO_ALIAS(EVP_CIPHER_CTX_reset);
632 648
633int 649int
634EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx) 650EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx)
@@ -651,6 +667,7 @@ EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx)
651 667
652 return 1; 668 return 1;
653} 669}
670LCRYPTO_ALIAS(EVP_CIPHER_CTX_cleanup);
654 671
655int 672int
656EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) 673EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
@@ -674,6 +691,7 @@ EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
674 } 691 }
675 return ret; 692 return ret;
676} 693}
694LCRYPTO_ALIAS(EVP_CIPHER_CTX_ctrl);
677 695
678int 696int
679EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key) 697EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key)
@@ -683,6 +701,7 @@ EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key)
683 arc4random_buf(key, ctx->key_len); 701 arc4random_buf(key, ctx->key_len);
684 return 1; 702 return 1;
685} 703}
704LCRYPTO_ALIAS(EVP_CIPHER_CTX_rand_key);
686 705
687int 706int
688EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) 707EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in)
@@ -722,6 +741,7 @@ EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in)
722 741
723 return 1; 742 return 1;
724} 743}
744LCRYPTO_ALIAS(EVP_CIPHER_CTX_copy);
725 745
726/* 746/*
727 * EVP_CIPHER_CTX accessors. 747 * EVP_CIPHER_CTX accessors.
@@ -732,12 +752,14 @@ EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx)
732{ 752{
733 return ctx->cipher; 753 return ctx->cipher;
734} 754}
755LCRYPTO_ALIAS(EVP_CIPHER_CTX_cipher);
735 756
736int 757int
737EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx) 758EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx)
738{ 759{
739 return ctx->encrypt; 760 return ctx->encrypt;
740} 761}
762LCRYPTO_ALIAS(EVP_CIPHER_CTX_encrypting);
741 763
742int 764int
743EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len) 765EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len)
@@ -757,6 +779,7 @@ EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len)
757 } 779 }
758 return 1; 780 return 1;
759} 781}
782LCRYPTO_ALIAS(EVP_CIPHER_CTX_get_iv);
760 783
761int 784int
762EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len) 785EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len)
@@ -776,30 +799,35 @@ EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len)
776 } 799 }
777 return 1; 800 return 1;
778} 801}
802LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_iv);
779 803
780unsigned char * 804unsigned char *
781EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx) 805EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx)
782{ 806{
783 return ctx->buf; 807 return ctx->buf;
784} 808}
809LCRYPTO_ALIAS(EVP_CIPHER_CTX_buf_noconst);
785 810
786void * 811void *
787EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx) 812EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx)
788{ 813{
789 return ctx->app_data; 814 return ctx->app_data;
790} 815}
816LCRYPTO_ALIAS(EVP_CIPHER_CTX_get_app_data);
791 817
792void 818void
793EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) 819EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data)
794{ 820{
795 ctx->app_data = data; 821 ctx->app_data = data;
796} 822}
823LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_app_data);
797 824
798int 825int
799EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx) 826EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx)
800{ 827{
801 return ctx->key_len; 828 return ctx->key_len;
802} 829}
830LCRYPTO_ALIAS(EVP_CIPHER_CTX_key_length);
803 831
804int 832int
805EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, int key_len) 833EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, int key_len)
@@ -813,6 +841,7 @@ EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, int key_len)
813 EVPerror(EVP_R_INVALID_KEY_LENGTH); 841 EVPerror(EVP_R_INVALID_KEY_LENGTH);
814 return 0; 842 return 0;
815} 843}
844LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_key_length);
816 845
817int 846int
818EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad) 847EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad)
@@ -823,30 +852,35 @@ EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad)
823 ctx->flags |= EVP_CIPH_NO_PADDING; 852 ctx->flags |= EVP_CIPH_NO_PADDING;
824 return 1; 853 return 1;
825} 854}
855LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_padding);
826 856
827void 857void
828EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags) 858EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags)
829{ 859{
830 ctx->flags |= flags; 860 ctx->flags |= flags;
831} 861}
862LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_flags);
832 863
833void 864void
834EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags) 865EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags)
835{ 866{
836 ctx->flags &= ~flags; 867 ctx->flags &= ~flags;
837} 868}
869LCRYPTO_ALIAS(EVP_CIPHER_CTX_clear_flags);
838 870
839int 871int
840EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags) 872EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags)
841{ 873{
842 return (ctx->flags & flags); 874 return (ctx->flags & flags);
843} 875}
876LCRYPTO_ALIAS(EVP_CIPHER_CTX_test_flags);
844 877
845void * 878void *
846EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx) 879EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx)
847{ 880{
848 return ctx->cipher_data; 881 return ctx->cipher_data;
849} 882}
883LCRYPTO_ALIAS(EVP_CIPHER_CTX_get_cipher_data);
850 884
851void * 885void *
852EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) 886EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data)
@@ -858,6 +892,7 @@ EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data)
858 892
859 return old_cipher_data; 893 return old_cipher_data;
860} 894}
895LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_cipher_data);
861 896
862/* 897/*
863 * EVP_CIPHER_CTX getters that reach into the cipher attached to the context. 898 * EVP_CIPHER_CTX getters that reach into the cipher attached to the context.
@@ -868,12 +903,14 @@ EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx)
868{ 903{
869 return ctx->cipher->nid; 904 return ctx->cipher->nid;
870} 905}
906LCRYPTO_ALIAS(EVP_CIPHER_CTX_nid);
871 907
872int 908int
873EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx) 909EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx)
874{ 910{
875 return ctx->cipher->block_size; 911 return ctx->cipher->block_size;
876} 912}
913LCRYPTO_ALIAS(EVP_CIPHER_CTX_block_size);
877 914
878int 915int
879EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) 916EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx)
@@ -893,12 +930,14 @@ EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx)
893 930
894 return iv_length; 931 return iv_length;
895} 932}
933LCRYPTO_ALIAS(EVP_CIPHER_CTX_iv_length);
896 934
897unsigned long 935unsigned long
898EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx) 936EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx)
899{ 937{
900 return ctx->cipher->flags; 938 return ctx->cipher->flags;
901} 939}
940LCRYPTO_ALIAS(EVP_CIPHER_CTX_flags);
902 941
903/* 942/*
904 * Used by CMS and its predecessors. Only GOST and RC2 have a custom method. 943 * Used by CMS and its predecessors. Only GOST and RC2 have a custom method.
@@ -1020,6 +1059,7 @@ EVP_CIPHER_type(const EVP_CIPHER *cipher)
1020 return nid; 1059 return nid;
1021 } 1060 }
1022} 1061}
1062LCRYPTO_ALIAS(EVP_CIPHER_type);
1023 1063
1024/* 1064/*
1025 * Accessors. First the trivial getters, then the setters for the method API. 1065 * Accessors. First the trivial getters, then the setters for the method API.
@@ -1030,30 +1070,35 @@ EVP_CIPHER_nid(const EVP_CIPHER *cipher)
1030{ 1070{
1031 return cipher->nid; 1071 return cipher->nid;
1032} 1072}
1073LCRYPTO_ALIAS(EVP_CIPHER_nid);
1033 1074
1034int 1075int
1035EVP_CIPHER_block_size(const EVP_CIPHER *cipher) 1076EVP_CIPHER_block_size(const EVP_CIPHER *cipher)
1036{ 1077{
1037 return cipher->block_size; 1078 return cipher->block_size;
1038} 1079}
1080LCRYPTO_ALIAS(EVP_CIPHER_block_size);
1039 1081
1040int 1082int
1041EVP_CIPHER_key_length(const EVP_CIPHER *cipher) 1083EVP_CIPHER_key_length(const EVP_CIPHER *cipher)
1042{ 1084{
1043 return cipher->key_len; 1085 return cipher->key_len;
1044} 1086}
1087LCRYPTO_ALIAS(EVP_CIPHER_key_length);
1045 1088
1046int 1089int
1047EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) 1090EVP_CIPHER_iv_length(const EVP_CIPHER *cipher)
1048{ 1091{
1049 return cipher->iv_len; 1092 return cipher->iv_len;
1050} 1093}
1094LCRYPTO_ALIAS(EVP_CIPHER_iv_length);
1051 1095
1052unsigned long 1096unsigned long
1053EVP_CIPHER_flags(const EVP_CIPHER *cipher) 1097EVP_CIPHER_flags(const EVP_CIPHER *cipher)
1054{ 1098{
1055 return cipher->flags; 1099 return cipher->flags;
1056} 1100}
1101LCRYPTO_ALIAS(EVP_CIPHER_flags);
1057 1102
1058EVP_CIPHER * 1103EVP_CIPHER *
1059EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) 1104EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len)
@@ -1076,6 +1121,7 @@ EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len)
1076 1121
1077 return cipher; 1122 return cipher;
1078} 1123}
1124LCRYPTO_ALIAS(EVP_CIPHER_meth_new);
1079 1125
1080EVP_CIPHER * 1126EVP_CIPHER *
1081EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) 1127EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher)
@@ -1089,12 +1135,14 @@ EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher)
1089 1135
1090 return copy; 1136 return copy;
1091} 1137}
1138LCRYPTO_ALIAS(EVP_CIPHER_meth_dup);
1092 1139
1093void 1140void
1094EVP_CIPHER_meth_free(EVP_CIPHER *cipher) 1141EVP_CIPHER_meth_free(EVP_CIPHER *cipher)
1095{ 1142{
1096 free(cipher); 1143 free(cipher);
1097} 1144}
1145LCRYPTO_ALIAS(EVP_CIPHER_meth_free);
1098 1146
1099int 1147int
1100EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) 1148EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len)
@@ -1103,6 +1151,7 @@ EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len)
1103 1151
1104 return 1; 1152 return 1;
1105} 1153}
1154LCRYPTO_ALIAS(EVP_CIPHER_meth_set_iv_length);
1106 1155
1107int 1156int
1108EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) 1157EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags)
@@ -1111,6 +1160,7 @@ EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags)
1111 1160
1112 return 1; 1161 return 1;
1113} 1162}
1163LCRYPTO_ALIAS(EVP_CIPHER_meth_set_flags);
1114 1164
1115int 1165int
1116EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) 1166EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size)
@@ -1119,6 +1169,7 @@ EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size)
1119 1169
1120 return 1; 1170 return 1;
1121} 1171}
1172LCRYPTO_ALIAS(EVP_CIPHER_meth_set_impl_ctx_size);
1122 1173
1123int 1174int
1124EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, 1175EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
@@ -1129,6 +1180,7 @@ EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
1129 1180
1130 return 1; 1181 return 1;
1131} 1182}
1183LCRYPTO_ALIAS(EVP_CIPHER_meth_set_init);
1132 1184
1133int 1185int
1134EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, 1186EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,
@@ -1139,6 +1191,7 @@ EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,
1139 1191
1140 return 1; 1192 return 1;
1141} 1193}
1194LCRYPTO_ALIAS(EVP_CIPHER_meth_set_do_cipher);
1142 1195
1143int 1196int
1144EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, 1197EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,
@@ -1148,6 +1201,7 @@ EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,
1148 1201
1149 return 1; 1202 return 1;
1150} 1203}
1204LCRYPTO_ALIAS(EVP_CIPHER_meth_set_cleanup);
1151 1205
1152int 1206int
1153EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, 1207EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,
@@ -1157,6 +1211,7 @@ EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,
1157 1211
1158 return 1; 1212 return 1;
1159} 1213}
1214LCRYPTO_ALIAS(EVP_CIPHER_meth_set_set_asn1_params);
1160 1215
1161int 1216int
1162EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, 1217EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,
@@ -1166,6 +1221,7 @@ EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,
1166 1221
1167 return 1; 1222 return 1;
1168} 1223}
1224LCRYPTO_ALIAS(EVP_CIPHER_meth_set_get_asn1_params);
1169 1225
1170int 1226int
1171EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, 1227EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
@@ -1175,3 +1231,4 @@ EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
1175 1231
1176 return 1; 1232 return 1;
1177} 1233}
1234LCRYPTO_ALIAS(EVP_CIPHER_meth_set_ctrl);