@appzung/react-native-code-push 7.1.1 → 9.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/.azurepipelines/build-rn-code-push-1es.yml +104 -0
  2. package/.azurepipelines/test-rn-code-push.yml +94 -0
  3. package/.config/CredScanSuppressions.json +14 -0
  4. package/CONTRIBUTING.md +3 -3
  5. package/CodePush.js +20 -21
  6. package/CodePush.podspec +3 -3
  7. package/README.md +7 -5
  8. package/android/app/build.gradle +3 -1
  9. package/android/app/src/main/AndroidManifest.xml +2 -7
  10. package/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java +14 -5
  11. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushConstants.java +1 -0
  12. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java +9 -1
  13. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +18 -10
  14. package/android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java +3 -1
  15. package/android/build.gradle +6 -2
  16. package/android/codepush.gradle +72 -26
  17. package/docs/api-js.md +1 -1
  18. package/docs/setup-android.md +27 -3
  19. package/docs/setup-ios.md +1 -1
  20. package/docs/setup-windows.md +23 -0
  21. package/ios/CodePush/CodePush.m +2 -1
  22. package/ios/CodePush/CodePushPackage.m +4 -0
  23. package/ios/CodePush/SSZipArchive/Info.plist +26 -0
  24. package/ios/CodePush/SSZipArchive/README.md +1 -1
  25. package/ios/CodePush/SSZipArchive/SSZipArchive.h +129 -27
  26. package/ios/CodePush/SSZipArchive/SSZipArchive.m +1119 -314
  27. package/ios/CodePush/SSZipArchive/SSZipCommon.h +71 -0
  28. package/ios/CodePush/SSZipArchive/Supporting Files/PrivacyInfo.xcprivacy +23 -0
  29. package/ios/CodePush/SSZipArchive/include/ZipArchive.h +25 -0
  30. package/ios/CodePush/SSZipArchive/minizip/LICENSE +17 -0
  31. package/ios/CodePush/SSZipArchive/minizip/mz.h +273 -0
  32. package/ios/CodePush/SSZipArchive/minizip/mz_compat.c +1306 -0
  33. package/ios/CodePush/SSZipArchive/minizip/mz_compat.h +346 -0
  34. package/ios/CodePush/SSZipArchive/minizip/mz_crypt.c +187 -0
  35. package/ios/CodePush/SSZipArchive/minizip/mz_crypt.h +65 -0
  36. package/ios/CodePush/SSZipArchive/minizip/mz_crypt_apple.c +526 -0
  37. package/ios/CodePush/SSZipArchive/minizip/mz_os.c +348 -0
  38. package/ios/CodePush/SSZipArchive/minizip/mz_os.h +176 -0
  39. package/ios/CodePush/SSZipArchive/minizip/mz_os_posix.c +350 -0
  40. package/ios/CodePush/SSZipArchive/minizip/mz_strm.c +556 -0
  41. package/ios/CodePush/SSZipArchive/minizip/mz_strm.h +132 -0
  42. package/ios/CodePush/SSZipArchive/minizip/mz_strm_buf.c +383 -0
  43. package/ios/CodePush/SSZipArchive/minizip/mz_strm_buf.h +42 -0
  44. package/ios/CodePush/SSZipArchive/minizip/mz_strm_mem.c +269 -0
  45. package/ios/CodePush/SSZipArchive/minizip/mz_strm_mem.h +48 -0
  46. package/ios/CodePush/SSZipArchive/minizip/mz_strm_os.h +40 -0
  47. package/ios/CodePush/SSZipArchive/minizip/mz_strm_os_posix.c +203 -0
  48. package/ios/CodePush/SSZipArchive/minizip/mz_strm_pkcrypt.c +334 -0
  49. package/ios/CodePush/SSZipArchive/minizip/mz_strm_pkcrypt.h +46 -0
  50. package/ios/CodePush/SSZipArchive/minizip/mz_strm_split.c +429 -0
  51. package/ios/CodePush/SSZipArchive/minizip/mz_strm_split.h +43 -0
  52. package/ios/CodePush/SSZipArchive/minizip/mz_strm_wzaes.c +360 -0
  53. package/ios/CodePush/SSZipArchive/minizip/mz_strm_wzaes.h +46 -0
  54. package/ios/CodePush/SSZipArchive/minizip/mz_strm_zlib.c +389 -0
  55. package/ios/CodePush/SSZipArchive/minizip/mz_strm_zlib.h +43 -0
  56. package/ios/CodePush/SSZipArchive/minizip/mz_zip.c +2782 -0
  57. package/ios/CodePush/SSZipArchive/minizip/mz_zip.h +262 -0
  58. package/ios/CodePush/SSZipArchive/minizip/mz_zip_rw.c +1942 -0
  59. package/ios/CodePush/SSZipArchive/minizip/mz_zip_rw.h +285 -0
  60. package/ios/CodePush.xcodeproj/project.pbxproj +245 -130
  61. package/ios/PrivacyInfo.xcprivacy +31 -0
  62. package/package.json +2 -2
  63. package/typings/react-native-code-push.d.ts +1 -1
  64. package/windows/CodePush/CodePush.vcxproj +2 -3
  65. package/windows-legacy/CodePush.Net46/CodePush.Net46.csproj +2 -2
  66. package/windows-legacy/CodePush.Net46.Test/CodePush.Net46.Test.csproj +2 -2
  67. package/ios/CodePush/SSZipArchive/Common.h +0 -81
  68. package/ios/CodePush/SSZipArchive/aes/aes.h +0 -198
  69. package/ios/CodePush/SSZipArchive/aes/aes_via_ace.h +0 -541
  70. package/ios/CodePush/SSZipArchive/aes/aescrypt.c +0 -294
  71. package/ios/CodePush/SSZipArchive/aes/aeskey.c +0 -548
  72. package/ios/CodePush/SSZipArchive/aes/aesopt.h +0 -739
  73. package/ios/CodePush/SSZipArchive/aes/aestab.c +0 -391
  74. package/ios/CodePush/SSZipArchive/aes/aestab.h +0 -173
  75. package/ios/CodePush/SSZipArchive/aes/brg_endian.h +0 -126
  76. package/ios/CodePush/SSZipArchive/aes/brg_types.h +0 -219
  77. package/ios/CodePush/SSZipArchive/aes/entropy.c +0 -54
  78. package/ios/CodePush/SSZipArchive/aes/entropy.h +0 -16
  79. package/ios/CodePush/SSZipArchive/aes/fileenc.c +0 -144
  80. package/ios/CodePush/SSZipArchive/aes/fileenc.h +0 -121
  81. package/ios/CodePush/SSZipArchive/aes/hmac.c +0 -145
  82. package/ios/CodePush/SSZipArchive/aes/hmac.h +0 -103
  83. package/ios/CodePush/SSZipArchive/aes/prng.c +0 -155
  84. package/ios/CodePush/SSZipArchive/aes/prng.h +0 -82
  85. package/ios/CodePush/SSZipArchive/aes/pwd2key.c +0 -103
  86. package/ios/CodePush/SSZipArchive/aes/pwd2key.h +0 -57
  87. package/ios/CodePush/SSZipArchive/aes/sha1.c +0 -258
  88. package/ios/CodePush/SSZipArchive/aes/sha1.h +0 -73
  89. package/ios/CodePush/SSZipArchive/minizip/crypt.h +0 -130
  90. package/ios/CodePush/SSZipArchive/minizip/ioapi.c +0 -369
  91. package/ios/CodePush/SSZipArchive/minizip/ioapi.h +0 -175
  92. package/ios/CodePush/SSZipArchive/minizip/mztools.c +0 -284
  93. package/ios/CodePush/SSZipArchive/minizip/mztools.h +0 -31
  94. package/ios/CodePush/SSZipArchive/minizip/unzip.c +0 -1839
  95. package/ios/CodePush/SSZipArchive/minizip/unzip.h +0 -248
  96. package/ios/CodePush/SSZipArchive/minizip/zip.c +0 -1910
  97. package/ios/CodePush/SSZipArchive/minizip/zip.h +0 -202
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appzung/react-native-code-push",
3
- "version": "7.1.1",
3
+ "version": "9.0.2",
4
4
  "description": "React Native plugin for the CodePush service",
5
5
  "main": "CodePush.js",
6
6
  "typings": "typings/react-native-code-push.d.ts",
@@ -25,7 +25,7 @@
25
25
  "tslint": "tslint -c tslint.json test/**/*.ts"
26
26
  },
27
27
  "dependencies": {
28
- "code-push": "^4.1.0",
28
+ "code-push": "4.2.3",
29
29
  "glob": "^7.1.7",
30
30
  "hoist-non-react-statics": "^3.3.2",
31
31
  "inquirer": "^8.1.5",
@@ -134,7 +134,7 @@ export interface SyncOptions {
134
134
  * value will enable the dialog with the default strings, and passing an object to this parameter allows enabling the dialog as well as
135
135
  * overriding one or more of the default strings.
136
136
  */
137
- updateDialog?: UpdateDialog;
137
+ updateDialog?: UpdateDialog | true;
138
138
 
139
139
  /**
140
140
  * The rollback retry mechanism allows the application to attempt to reinstall an update that was previously rolled back (with the restrictions
@@ -14,8 +14,8 @@
14
14
  <AppContainerApplication>true</AppContainerApplication>
15
15
  <ApplicationType>Windows Store</ApplicationType>
16
16
  <ApplicationTypeRevision>10.0</ApplicationTypeRevision>
17
- <WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
18
- <WindowsTargetPlatformMinVersion>10.0.17134.0</WindowsTargetPlatformMinVersion>
17
+ <WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0</WindowsTargetPlatformVersion>
18
+ <WindowsTargetPlatformMinVersion>10.0.17763.0</WindowsTargetPlatformMinVersion>
19
19
  </PropertyGroup>
20
20
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21
21
  <PropertyGroup Label="ReactNativeWindowsProps">
@@ -57,7 +57,6 @@
57
57
  </ItemGroup>
58
58
  <PropertyGroup Label="Configuration">
59
59
  <ConfigurationType>DynamicLibrary</ConfigurationType>
60
- <PlatformToolset>v140</PlatformToolset>
61
60
  <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
62
61
  <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
63
62
  <CharacterSet>Unicode</CharacterSet>
@@ -50,8 +50,8 @@
50
50
  <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
51
51
  </PropertyGroup>
52
52
  <ItemGroup>
53
- <Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
54
- <HintPath>$(SolutionDir)\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
53
+ <Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
54
+ <HintPath>$(SolutionDir)\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
55
55
  <Private>True</Private>
56
56
  </Reference>
57
57
  <Reference Include="PCLStorage, Version=1.0.2.0, Culture=neutral, PublicKeyToken=286fe515a2c35b64, processorArchitecture=MSIL">
@@ -71,9 +71,9 @@
71
71
  <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
72
72
  </PropertyGroup>
73
73
  <ItemGroup>
74
- <Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
74
+ <Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
75
75
  <SpecificVersion>False</SpecificVersion>
76
- <HintPath>..\..\Examples\CodePushDemoApp\windows\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
76
+ <HintPath>..\..\Examples\CodePushDemoApp\windows\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
77
77
  <Private>True</Private>
78
78
  </Reference>
79
79
  <Reference Include="System" />
@@ -1,81 +0,0 @@
1
- #ifndef SSZipCommon
2
- #define SSZipCommon
3
-
4
- /* tm_unz contain date/time info */
5
- typedef struct tm_unz_s
6
- {
7
- unsigned int tm_sec; /* seconds after the minute - [0,59] */
8
- unsigned int tm_min; /* minutes after the hour - [0,59] */
9
- unsigned int tm_hour; /* hours since midnight - [0,23] */
10
- unsigned int tm_mday; /* day of the month - [1,31] */
11
- unsigned int tm_mon; /* months since January - [0,11] */
12
- unsigned int tm_year; /* years - [1980..2044] */
13
- } tm_unz;
14
-
15
- typedef struct unz_file_info_s
16
- {
17
- unsigned long version; /* version made by 2 bytes */
18
- unsigned long version_needed; /* version needed to extract 2 bytes */
19
- unsigned long flag; /* general purpose bit flag 2 bytes */
20
- unsigned long compression_method; /* compression method 2 bytes */
21
- unsigned long dosDate; /* last mod file date in Dos fmt 4 bytes */
22
- unsigned long crc; /* crc-32 4 bytes */
23
- unsigned long compressed_size; /* compressed size 4 bytes */
24
- unsigned long uncompressed_size; /* uncompressed size 4 bytes */
25
- unsigned long size_filename; /* filename length 2 bytes */
26
- unsigned long size_file_extra; /* extra field length 2 bytes */
27
- unsigned long size_file_comment; /* file comment length 2 bytes */
28
-
29
- unsigned long disk_num_start; /* disk number start 2 bytes */
30
- unsigned long internal_fa; /* internal file attributes 2 bytes */
31
- unsigned long external_fa; /* external file attributes 4 bytes */
32
-
33
- tm_unz tmu_date;
34
- } unz_file_info;
35
-
36
- /* unz_file_info contain information about a file in the zipfile */
37
- typedef struct unz_file_info64_s
38
- {
39
- unsigned long version; /* version made by 2 bytes */
40
- unsigned long version_needed; /* version needed to extract 2 bytes */
41
- unsigned long flag; /* general purpose bit flag 2 bytes */
42
- unsigned long compression_method; /* compression method 2 bytes */
43
- unsigned long dosDate; /* last mod file date in Dos fmt 4 bytes */
44
- unsigned long crc; /* crc-32 4 bytes */
45
- unsigned long long compressed_size; /* compressed size 8 bytes */
46
- unsigned long long uncompressed_size; /* uncompressed size 8 bytes */
47
- unsigned long size_filename; /* filename length 2 bytes */
48
- unsigned long size_file_extra; /* extra field length 2 bytes */
49
- unsigned long size_file_comment; /* file comment length 2 bytes */
50
-
51
- unsigned long disk_num_start; /* disk number start 2 bytes */
52
- unsigned long internal_fa; /* internal file attributes 2 bytes */
53
- unsigned long external_fa; /* external file attributes 4 bytes */
54
-
55
- tm_unz tmu_date;
56
- unsigned long long disk_offset;
57
- unsigned long size_file_extra_internal;
58
- } unz_file_info64;
59
-
60
- typedef struct unz_global_info_s
61
- {
62
- unsigned long number_entry; /* total number of entries in
63
- the central dir on this disk */
64
-
65
- unsigned long number_disk_with_CD; /* number the the disk with central dir, used for spanning ZIP*/
66
-
67
-
68
- unsigned long size_comment; /* size of the global comment of the zipfile */
69
- } unz_global_info;
70
-
71
- typedef struct unz_global_info64
72
- {
73
- unsigned long long number_entry; /* total number of entries in
74
- the central dir on this disk */
75
-
76
- unsigned long number_disk_with_CD; /* number the the disk with central dir, used for spanning ZIP*/
77
-
78
- unsigned long size_comment; /* size of the global comment of the zipfile */
79
- } unz_global_info64;
80
-
81
- #endif
@@ -1,198 +0,0 @@
1
- /*
2
- ---------------------------------------------------------------------------
3
- Copyright (c) 1998-2010, Brian Gladman, Worcester, UK. All rights reserved.
4
-
5
- The redistribution and use of this software (with or without changes)
6
- is allowed without the payment of fees or royalties provided that:
7
-
8
- source code distributions include the above copyright notice, this
9
- list of conditions and the following disclaimer;
10
-
11
- binary distributions include the above copyright notice, this list
12
- of conditions and the following disclaimer in their documentation.
13
-
14
- This software is provided 'as is' with no explicit or implied warranties
15
- in respect of its operation, including, but not limited to, correctness
16
- and fitness for purpose.
17
- ---------------------------------------------------------------------------
18
- Issue Date: 20/12/2007
19
-
20
- This file contains the definitions required to use AES in C. See aesopt.h
21
- for optimisation details.
22
- */
23
-
24
- #ifndef _AES_H
25
- #define _AES_H
26
-
27
- #include <stdlib.h>
28
-
29
- /* This include is used to find 8 & 32 bit unsigned integer types */
30
- #include "brg_types.h"
31
-
32
- #if defined(__cplusplus)
33
- extern "C"
34
- {
35
- #endif
36
-
37
- #define AES_128 /* if a fast 128 bit key scheduler is needed */
38
- #define AES_192 /* if a fast 192 bit key scheduler is needed */
39
- #define AES_256 /* if a fast 256 bit key scheduler is needed */
40
- #define AES_VAR /* if variable key size scheduler is needed */
41
- #define AES_MODES /* if support is needed for modes */
42
-
43
- /* The following must also be set in assembler files if being used */
44
-
45
- #define AES_ENCRYPT /* if support for encryption is needed */
46
- #define AES_DECRYPT /* if support for decryption is needed */
47
- #define AES_REV_DKS /* define to reverse decryption key schedule */
48
-
49
- #define AES_BLOCK_SIZE 16 /* the AES block size in bytes */
50
- #define N_COLS 4 /* the number of columns in the state */
51
-
52
- /* The key schedule length is 11, 13 or 15 16-byte blocks for 128, */
53
- /* 192 or 256-bit keys respectively. That is 176, 208 or 240 bytes */
54
- /* or 44, 52 or 60 32-bit words. */
55
-
56
- #if defined( AES_VAR ) || defined( AES_256 )
57
- #define KS_LENGTH 60
58
- #elif defined( AES_192 )
59
- #define KS_LENGTH 52
60
- #else
61
- #define KS_LENGTH 44
62
- #endif
63
-
64
- #define AES_RETURN INT_RETURN
65
-
66
- /* the character array 'inf' in the following structures is used */
67
- /* to hold AES context information. This AES code uses cx->inf.b[0] */
68
- /* to hold the number of rounds multiplied by 16. The other three */
69
- /* elements can be used by code that implements additional modes */
70
-
71
- typedef union
72
- { uint_32t l;
73
- uint_8t b[4];
74
- } aes_inf;
75
-
76
- typedef struct
77
- { uint_32t ks[KS_LENGTH];
78
- aes_inf inf;
79
- } aes_encrypt_ctx;
80
-
81
- typedef struct
82
- { uint_32t ks[KS_LENGTH];
83
- aes_inf inf;
84
- } aes_decrypt_ctx;
85
-
86
- /* This routine must be called before first use if non-static */
87
- /* tables are being used */
88
-
89
- AES_RETURN aes_init(void);
90
-
91
- /* Key lengths in the range 16 <= key_len <= 32 are given in bytes, */
92
- /* those in the range 128 <= key_len <= 256 are given in bits */
93
-
94
- #if defined( AES_ENCRYPT )
95
-
96
- #if defined( AES_128 ) || defined( AES_VAR)
97
- AES_RETURN aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]);
98
- #endif
99
-
100
- #if defined( AES_192 ) || defined( AES_VAR)
101
- AES_RETURN aes_encrypt_key192(const unsigned char *key, aes_encrypt_ctx cx[1]);
102
- #endif
103
-
104
- #if defined( AES_256 ) || defined( AES_VAR)
105
- AES_RETURN aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]);
106
- #endif
107
-
108
- #if defined( AES_VAR )
109
- AES_RETURN aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
110
- #endif
111
-
112
- AES_RETURN aes_encrypt(const unsigned char *in, unsigned char *out, const aes_encrypt_ctx cx[1]);
113
-
114
- #endif
115
-
116
- #if defined( AES_DECRYPT )
117
-
118
- #if defined( AES_128 ) || defined( AES_VAR)
119
- AES_RETURN aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]);
120
- #endif
121
-
122
- #if defined( AES_192 ) || defined( AES_VAR)
123
- AES_RETURN aes_decrypt_key192(const unsigned char *key, aes_decrypt_ctx cx[1]);
124
- #endif
125
-
126
- #if defined( AES_256 ) || defined( AES_VAR)
127
- AES_RETURN aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1]);
128
- #endif
129
-
130
- #if defined( AES_VAR )
131
- AES_RETURN aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
132
- #endif
133
-
134
- AES_RETURN aes_decrypt(const unsigned char *in, unsigned char *out, const aes_decrypt_ctx cx[1]);
135
-
136
- #endif
137
-
138
- #if defined( AES_MODES )
139
-
140
- /* Multiple calls to the following subroutines for multiple block */
141
- /* ECB, CBC, CFB, OFB and CTR mode encryption can be used to handle */
142
- /* long messages incremantally provided that the context AND the iv */
143
- /* are preserved between all such calls. For the ECB and CBC modes */
144
- /* each individual call within a series of incremental calls must */
145
- /* process only full blocks (i.e. len must be a multiple of 16) but */
146
- /* the CFB, OFB and CTR mode calls can handle multiple incremental */
147
- /* calls of any length. Each mode is reset when a new AES key is */
148
- /* set but ECB and CBC operations can be reset without setting a */
149
- /* new key by setting a new IV value. To reset CFB, OFB and CTR */
150
- /* without setting the key, aes_mode_reset() must be called and the */
151
- /* IV must be set. NOTE: All these calls update the IV on exit so */
152
- /* this has to be reset if a new operation with the same IV as the */
153
- /* previous one is required (or decryption follows encryption with */
154
- /* the same IV array). */
155
-
156
- AES_RETURN aes_test_alignment_detection(unsigned int n);
157
-
158
- AES_RETURN aes_ecb_encrypt(const unsigned char *ibuf, unsigned char *obuf,
159
- int len, const aes_encrypt_ctx cx[1]);
160
-
161
- AES_RETURN aes_ecb_decrypt(const unsigned char *ibuf, unsigned char *obuf,
162
- int len, const aes_decrypt_ctx cx[1]);
163
-
164
- AES_RETURN aes_cbc_encrypt(const unsigned char *ibuf, unsigned char *obuf,
165
- int len, unsigned char *iv, const aes_encrypt_ctx cx[1]);
166
-
167
- AES_RETURN aes_cbc_decrypt(const unsigned char *ibuf, unsigned char *obuf,
168
- int len, unsigned char *iv, const aes_decrypt_ctx cx[1]);
169
-
170
- AES_RETURN aes_mode_reset(aes_encrypt_ctx cx[1]);
171
-
172
- AES_RETURN aes_cfb_encrypt(const unsigned char *ibuf, unsigned char *obuf,
173
- int len, unsigned char *iv, aes_encrypt_ctx cx[1]);
174
-
175
- AES_RETURN aes_cfb_decrypt(const unsigned char *ibuf, unsigned char *obuf,
176
- int len, unsigned char *iv, aes_encrypt_ctx cx[1]);
177
-
178
- #define aes_ofb_encrypt aes_ofb_crypt
179
- #define aes_ofb_decrypt aes_ofb_crypt
180
-
181
- AES_RETURN aes_ofb_crypt(const unsigned char *ibuf, unsigned char *obuf,
182
- int len, unsigned char *iv, aes_encrypt_ctx cx[1]);
183
-
184
- typedef void cbuf_inc(unsigned char *cbuf);
185
-
186
- #define aes_ctr_encrypt aes_ctr_crypt
187
- #define aes_ctr_decrypt aes_ctr_crypt
188
-
189
- AES_RETURN aes_ctr_crypt(const unsigned char *ibuf, unsigned char *obuf,
190
- int len, unsigned char *cbuf, cbuf_inc ctr_inc, aes_encrypt_ctx cx[1]);
191
-
192
- #endif
193
-
194
- #if defined(__cplusplus)
195
- }
196
- #endif
197
-
198
- #endif