Go to the documentation of this file.
31 #ifndef _CIPHER_ALGORITHMS_H
32 #define _CIPHER_ALGORITHMS_H
38 #if (RC2_SUPPORT == ENABLED)
43 #if (RC4_SUPPORT == ENABLED)
48 #if (RC6_SUPPORT == ENABLED)
53 #if (CAST128_SUPPORT == ENABLED)
58 #if (CAST256_SUPPORT == ENABLED)
63 #if (IDEA_SUPPORT == ENABLED)
68 #if (DES_SUPPORT == ENABLED)
73 #if (DES3_SUPPORT == ENABLED)
78 #if (AES_SUPPORT == ENABLED)
83 #if (BLOWFISH_SUPPORT == ENABLED)
88 #if (TWOFISH_SUPPORT == ENABLED)
93 #if (MARS_SUPPORT == ENABLED)
98 #if (SERPENT_SUPPORT == ENABLED)
103 #if (CAMELLIA_SUPPORT == ENABLED)
108 #if (ARIA_SUPPORT == ENABLED)
113 #if (SEED_SUPPORT == ENABLED)
118 #if (SM4_SUPPORT == ENABLED)
123 #if (PRESENT_SUPPORT == ENABLED)
128 #if (TEA_SUPPORT == ENABLED)
133 #if (XTEA_SUPPORT == ENABLED)
138 #if (TRIVIUM_SUPPORT == ENABLED)
143 #if (ZUC_SUPPORT == ENABLED)
148 #if (SALSA20_SUPPORT == ENABLED)
153 #if (CHACHA_SUPPORT == ENABLED)
158 #if (RC6_SUPPORT == ENABLED)
159 #define MAX_CIPHER_BLOCK_SIZE RC6_BLOCK_SIZE
160 #elif (CAST256_SUPPORT == ENABLED)
161 #define MAX_CIPHER_BLOCK_SIZE CAST256_BLOCK_SIZE
162 #elif (AES_SUPPORT == ENABLED)
163 #define MAX_CIPHER_BLOCK_SIZE AES_BLOCK_SIZE
164 #elif (TWOFISH_SUPPORT == ENABLED)
165 #define MAX_CIPHER_BLOCK_SIZE TWOFISH_BLOCK_SIZE
166 #elif (MARS_SUPPORT == ENABLED)
167 #define MAX_CIPHER_BLOCK_SIZE MARS_BLOCK_SIZE
168 #elif (SERPENT_SUPPORT == ENABLED)
169 #define MAX_CIPHER_BLOCK_SIZE SERPENT_BLOCK_SIZE
170 #elif (CAMELLIA_SUPPORT == ENABLED)
171 #define MAX_CIPHER_BLOCK_SIZE CAMELLIA_BLOCK_SIZE
172 #elif (ARIA_SUPPORT == ENABLED)
173 #define MAX_CIPHER_BLOCK_SIZE ARIA_BLOCK_SIZE
174 #elif (SEED_SUPPORT == ENABLED)
175 #define MAX_CIPHER_BLOCK_SIZE SEED_BLOCK_SIZE
176 #elif (SM4_SUPPORT == ENABLED)
177 #define MAX_CIPHER_BLOCK_SIZE SM4_BLOCK_SIZE
178 #elif (RC2_SUPPORT == ENABLED)
179 #define MAX_CIPHER_BLOCK_SIZE RC2_BLOCK_SIZE
180 #elif (CAST128_SUPPORT == ENABLED)
181 #define MAX_CIPHER_BLOCK_SIZE CAST128_BLOCK_SIZE
182 #elif (IDEA_SUPPORT == ENABLED)
183 #define MAX_CIPHER_BLOCK_SIZE IDEA_BLOCK_SIZE
184 #elif (DES_SUPPORT == ENABLED)
185 #define MAX_CIPHER_BLOCK_SIZE DES_BLOCK_SIZE
186 #elif (DES3_SUPPORT == ENABLED)
187 #define MAX_CIPHER_BLOCK_SIZE DES3_BLOCK_SIZE
188 #elif (BLOWFISH_SUPPORT == ENABLED)
189 #define MAX_CIPHER_BLOCK_SIZE BLOWFISH_BLOCK_SIZE
190 #elif (PRESENT_SUPPORT == ENABLED)
191 #define MAX_CIPHER_BLOCK_SIZE PRESENT_BLOCK_SIZE
192 #elif (TEA_SUPPORT == ENABLED)
193 #define MAX_CIPHER_BLOCK_SIZE TEA_BLOCK_SIZE
194 #elif (XTEA_SUPPORT == ENABLED)
195 #define MAX_CIPHER_BLOCK_SIZE XTEA_BLOCK_SIZE
210 #if (RC2_SUPPORT == ENABLED)
213 #if (RC4_SUPPORT == ENABLED)
216 #if (RC6_SUPPORT == ENABLED)
219 #if (CAST128_SUPPORT == ENABLED)
222 #if (CAST256_SUPPORT == ENABLED)
225 #if (IDEA_SUPPORT == ENABLED)
228 #if (DES_SUPPORT == ENABLED)
231 #if (DES3_SUPPORT == ENABLED)
234 #if (AES_SUPPORT == ENABLED)
237 #if (BLOWFISH_SUPPORT == ENABLED)
240 #if (TWOFISH_SUPPORT == ENABLED)
243 #if (MARS_SUPPORT == ENABLED)
246 #if (SERPENT_SUPPORT == ENABLED)
249 #if (CAMELLIA_SUPPORT == ENABLED)
252 #if (ARIA_SUPPORT == ENABLED)
255 #if (SEED_SUPPORT == ENABLED)
258 #if (SM4_SUPPORT == ENABLED)
261 #if (PRESENT_SUPPORT == ENABLED)
264 #if (TEA_SUPPORT == ENABLED)
267 #if (XTEA_SUPPORT == ENABLED)
270 #if (TRIVIUM_SUPPORT == ENABLED)
273 #if (ZUC_SUPPORT == ENABLED)
PRESENT encryption algorithm.
TriviumContext triviumContext
Cast128Context cast128Context
ARIA encryption algorithm.
Serpent algorithm context.
Generic cipher algorithm context.
CamelliaContext camelliaContext
Twofish algorithm context.
ZUC stream cipher (ZUC-128 and ZUC-256)
TEA (Tiny Encryption Algorithm)
ChaCha encryption algorithm.
PresentContext presentContext
CAST-256 encryption algorithm.
SerpentContext serpentContext
CAST-128 encryption algorithm.
Serpent encryption algorithm.
AES (Advanced Encryption Standard)
Cast256Context cast256Context
General definitions for cryptographic algorithms.
SM4 encryption algorithm.
TwofishContext twofishContext
IDEA encryption algorithm.
Trivium algorithm context.
Blowfish encryption algorithm.
CAST-128 algorithm context.
SEED encryption algorithm.
Twofish encryption algorithm.
DES (Data Encryption Standard)
BlowfishContext blowfishContext
Triple DES algorithm context.
Blowfish algorithm context.
Camellia algorithm context.
MARS encryption algorithm.
CAST-256 algorithm context.
Salsa20 encryption algorithm.
RC4 encryption algorithm.
Triple DES (Triple Data Encryption Algorithm)
PRESENT algorithm context.
Camellia encryption algorithm.