Go to the documentation of this file.
31 #ifndef _HASH_ALGORITHMS_H
32 #define _HASH_ALGORITHMS_H
38 #if (MD2_SUPPORT == ENABLED)
43 #if (MD4_SUPPORT == ENABLED)
48 #if (MD5_SUPPORT == ENABLED)
53 #if (RIPEMD128_SUPPORT == ENABLED)
58 #if (RIPEMD160_SUPPORT == ENABLED)
63 #if (SHA1_SUPPORT == ENABLED)
68 #if (SHA224_SUPPORT == ENABLED)
73 #if (SHA256_SUPPORT == ENABLED)
78 #if (SHA384_SUPPORT == ENABLED)
83 #if (SHA512_SUPPORT == ENABLED)
88 #if (SHA512_224_SUPPORT == ENABLED)
93 #if (SHA512_256_SUPPORT == ENABLED)
98 #if (SHA3_224_SUPPORT == ENABLED)
103 #if (SHA3_256_SUPPORT == ENABLED)
108 #if (SHA3_384_SUPPORT == ENABLED)
113 #if (SHA3_512_SUPPORT == ENABLED)
118 #if (BLAKE2B160_SUPPORT == ENABLED)
123 #if (BLAKE2B256_SUPPORT == ENABLED)
128 #if (BLAKE2B384_SUPPORT == ENABLED)
133 #if (BLAKE2B512_SUPPORT == ENABLED)
138 #if (BLAKE2S128_SUPPORT == ENABLED)
143 #if (BLAKE2S160_SUPPORT == ENABLED)
148 #if (BLAKE2S224_SUPPORT == ENABLED)
153 #if (BLAKE2S256_SUPPORT == ENABLED)
158 #if (SM3_SUPPORT == ENABLED)
163 #if (TIGER_SUPPORT == ENABLED)
168 #if (WHIRLPOOL_SUPPORT == ENABLED)
173 #if (SHA3_224_SUPPORT == ENABLED)
174 #define MAX_HASH_BLOCK_SIZE SHA3_224_BLOCK_SIZE
175 #elif (SHA3_256_SUPPORT == ENABLED)
176 #define MAX_HASH_BLOCK_SIZE SHA3_256_BLOCK_SIZE
177 #elif (BLAKE2B512_SUPPORT == ENABLED)
178 #define MAX_HASH_BLOCK_SIZE BLAKE2B512_BLOCK_SIZE
179 #elif (BLAKE2B384_SUPPORT == ENABLED)
180 #define MAX_HASH_BLOCK_SIZE BLAKE2B384_BLOCK_SIZE
181 #elif (BLAKE2B256_SUPPORT == ENABLED)
182 #define MAX_HASH_BLOCK_SIZE BLAKE2B256_BLOCK_SIZE
183 #elif (BLAKE2B160_SUPPORT == ENABLED)
184 #define MAX_HASH_BLOCK_SIZE BLAKE2B160_BLOCK_SIZE
185 #elif (SHA512_SUPPORT == ENABLED)
186 #define MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE
187 #elif (SHA384_SUPPORT == ENABLED)
188 #define MAX_HASH_BLOCK_SIZE SHA384_BLOCK_SIZE
189 #elif (SHA512_256_SUPPORT == ENABLED)
190 #define MAX_HASH_BLOCK_SIZE SHA512_256_BLOCK_SIZE
191 #elif (SHA512_224_SUPPORT == ENABLED)
192 #define MAX_HASH_BLOCK_SIZE SHA512_224_BLOCK_SIZE
193 #elif (SHA3_384_SUPPORT == ENABLED)
194 #define MAX_HASH_BLOCK_SIZE SHA3_384_BLOCK_SIZE
195 #elif (SHA3_512_SUPPORT == ENABLED)
196 #define MAX_HASH_BLOCK_SIZE SHA3_512_BLOCK_SIZE
197 #elif (BLAKE2S256_SUPPORT == ENABLED)
198 #define MAX_HASH_BLOCK_SIZE BLAKE2S256_BLOCK_SIZE
199 #elif (BLAKE2S224_SUPPORT == ENABLED)
200 #define MAX_HASH_BLOCK_SIZE BLAKE2S224_BLOCK_SIZE
201 #elif (BLAKE2S160_SUPPORT == ENABLED)
202 #define MAX_HASH_BLOCK_SIZE BLAKE2S160_BLOCK_SIZE
203 #elif (BLAKE2S128_SUPPORT == ENABLED)
204 #define MAX_HASH_BLOCK_SIZE BLAKE2S128_BLOCK_SIZE
205 #elif (SHA256_SUPPORT == ENABLED)
206 #define MAX_HASH_BLOCK_SIZE SHA256_BLOCK_SIZE
207 #elif (SHA224_SUPPORT == ENABLED)
208 #define MAX_HASH_BLOCK_SIZE SHA224_BLOCK_SIZE
209 #elif (SHA1_SUPPORT == ENABLED)
210 #define MAX_HASH_BLOCK_SIZE SHA1_BLOCK_SIZE
211 #elif (SM3_SUPPORT == ENABLED)
212 #define MAX_HASH_BLOCK_SIZE SM3_BLOCK_SIZE
213 #elif (WHIRLPOOL_SUPPORT == ENABLED)
214 #define MAX_HASH_BLOCK_SIZE WHIRLPOOL_BLOCK_SIZE
215 #elif (TIGER_SUPPORT == ENABLED)
216 #define MAX_HASH_BLOCK_SIZE TIGER_BLOCK_SIZE
217 #elif (RIPEMD160_SUPPORT == ENABLED)
218 #define MAX_HASH_BLOCK_SIZE RIPEMD160_BLOCK_SIZE
219 #elif (RIPEMD128_SUPPORT == ENABLED)
220 #define MAX_HASH_BLOCK_SIZE RIPEMD128_BLOCK_SIZE
221 #elif (MD5_SUPPORT == ENABLED)
222 #define MAX_HASH_BLOCK_SIZE MD5_BLOCK_SIZE
223 #elif (MD4_SUPPORT == ENABLED)
224 #define MAX_HASH_BLOCK_SIZE MD4_BLOCK_SIZE
225 #elif (MD2_SUPPORT == ENABLED)
226 #define MAX_HASH_BLOCK_SIZE MD2_BLOCK_SIZE
230 #if (WHIRLPOOL_SUPPORT == ENABLED)
231 #define MAX_HASH_DIGEST_SIZE WHIRLPOOL_DIGEST_SIZE
232 #elif (BLAKE2B512_SUPPORT == ENABLED)
233 #define MAX_HASH_DIGEST_SIZE BLAKE2B512_DIGEST_SIZE
234 #elif (SHA3_512_SUPPORT == ENABLED)
235 #define MAX_HASH_DIGEST_SIZE SHA3_512_DIGEST_SIZE
236 #elif (SHA512_SUPPORT == ENABLED)
237 #define MAX_HASH_DIGEST_SIZE SHA512_DIGEST_SIZE
238 #elif (BLAKE2B384_SUPPORT == ENABLED)
239 #define MAX_HASH_DIGEST_SIZE BLAKE2B384_DIGEST_SIZE
240 #elif (SHA3_384_SUPPORT == ENABLED)
241 #define MAX_HASH_DIGEST_SIZE SHA3_384_DIGEST_SIZE
242 #elif (SHA384_SUPPORT == ENABLED)
243 #define MAX_HASH_DIGEST_SIZE SHA384_DIGEST_SIZE
244 #elif (BLAKE2B256_SUPPORT == ENABLED)
245 #define MAX_HASH_DIGEST_SIZE BLAKE2B256_DIGEST_SIZE
246 #elif (BLAKE2S256_SUPPORT == ENABLED)
247 #define MAX_HASH_DIGEST_SIZE BLAKE2S256_DIGEST_SIZE
248 #elif (SHA3_256_SUPPORT == ENABLED)
249 #define MAX_HASH_DIGEST_SIZE SHA3_256_DIGEST_SIZE
250 #elif (SHA512_256_SUPPORT == ENABLED)
251 #define MAX_HASH_DIGEST_SIZE SHA512_256_DIGEST_SIZE
252 #elif (SHA256_SUPPORT == ENABLED)
253 #define MAX_HASH_DIGEST_SIZE SHA256_DIGEST_SIZE
254 #elif (SM3_SUPPORT == ENABLED)
255 #define MAX_HASH_DIGEST_SIZE SM3_DIGEST_SIZE
256 #elif (BLAKE2S224_SUPPORT == ENABLED)
257 #define MAX_HASH_DIGEST_SIZE BLAKE2S224_DIGEST_SIZE
258 #elif (SHA3_224_SUPPORT == ENABLED)
259 #define MAX_HASH_DIGEST_SIZE SHA3_224_DIGEST_SIZE
260 #elif (SHA512_224_SUPPORT == ENABLED)
261 #define MAX_HASH_DIGEST_SIZE SHA512_224_DIGEST_SIZE
262 #elif (SHA224_SUPPORT == ENABLED)
263 #define MAX_HASH_DIGEST_SIZE SHA224_DIGEST_SIZE
264 #elif (TIGER_SUPPORT == ENABLED)
265 #define MAX_HASH_DIGEST_SIZE TIGER_DIGEST_SIZE
266 #elif (BLAKE2B160_SUPPORT == ENABLED)
267 #define MAX_HASH_DIGEST_SIZE BLAKE2B160_DIGEST_SIZE
268 #elif (BLAKE2S160_SUPPORT == ENABLED)
269 #define MAX_HASH_DIGEST_SIZE BLAKE2S160_DIGEST_SIZE
270 #elif (SHA1_SUPPORT == ENABLED)
271 #define MAX_HASH_DIGEST_SIZE SHA1_DIGEST_SIZE
272 #elif (RIPEMD160_SUPPORT == ENABLED)
273 #define MAX_HASH_DIGEST_SIZE RIPEMD160_DIGEST_SIZE
274 #elif (BLAKE2S128_SUPPORT == ENABLED)
275 #define MAX_HASH_DIGEST_SIZE BLAKE2S128_DIGEST_SIZE
276 #elif (RIPEMD128_SUPPORT == ENABLED)
277 #define MAX_HASH_DIGEST_SIZE RIPEMD128_DIGEST_SIZE
278 #elif (MD5_SUPPORT == ENABLED)
279 #define MAX_HASH_DIGEST_SIZE MD5_DIGEST_SIZE
280 #elif (MD4_SUPPORT == ENABLED)
281 #define MAX_HASH_DIGEST_SIZE MD4_DIGEST_SIZE
282 #elif (MD2_SUPPORT == ENABLED)
283 #define MAX_HASH_DIGEST_SIZE MD2_DIGEST_SIZE
299 #if (MD2_SUPPORT == ENABLED)
302 #if (MD4_SUPPORT == ENABLED)
305 #if (MD5_SUPPORT == ENABLED)
308 #if (RIPEMD128_SUPPORT == ENABLED)
311 #if (RIPEMD160_SUPPORT == ENABLED)
314 #if (SHA1_SUPPORT == ENABLED)
317 #if (SHA224_SUPPORT == ENABLED)
320 #if (SHA256_SUPPORT == ENABLED)
323 #if (SHA384_SUPPORT == ENABLED)
326 #if (SHA512_SUPPORT == ENABLED)
329 #if (SHA512_224_SUPPORT == ENABLED)
332 #if (SHA512_256_SUPPORT == ENABLED)
335 #if (SHA3_224_SUPPORT == ENABLED)
338 #if (SHA3_256_SUPPORT == ENABLED)
341 #if (SHA3_384_SUPPORT == ENABLED)
344 #if (SHA3_512_SUPPORT == ENABLED)
347 #if (BLAKE2B160_SUPPORT == ENABLED)
350 #if (BLAKE2B256_SUPPORT == ENABLED)
353 #if (BLAKE2B384_SUPPORT == ENABLED)
356 #if (BLAKE2B512_SUPPORT == ENABLED)
359 #if (BLAKE2S128_SUPPORT == ENABLED)
362 #if (BLAKE2S160_SUPPORT == ENABLED)
365 #if (BLAKE2S224_SUPPORT == ENABLED)
368 #if (BLAKE2S256_SUPPORT == ENABLED)
371 #if (SM3_SUPPORT == ENABLED)
374 #if (TIGER_SUPPORT == ENABLED)
377 #if (WHIRLPOOL_SUPPORT == ENABLED)
SHA-512/256 (Secure Hash Algorithm)
Sha256Context sha256Context
Generic hash algorithm context.
SHA3-512 hash function (SHA-3 with 512-bit output)
Blake2b160Context blake2b160Context
BLAKE2s-128 hash function.
Sha3_512Context sha3_512Context
RIPEMD-128 hash function.
SHA-256 algorithm context.
Sha512_224Context sha512_224Context
SHA3-224 hash function (SHA-3 with 224-bit output)
SHA-1 (Secure Hash Algorithm 1)
SHA3-384 hash function (SHA-3 with 384-bit output)
Blake2s128Context blake2s128Context
BLAKE2s-160 hash function.
Blake2s160Context blake2s160Context
Blake2b512Context blake2b512Context
SHA-512 (Secure Hash Algorithm 512)
Sha384Context sha384Context
Sha3_224Context sha3_224Context
Sha3_256Context sha3_256Context
#define MAX_HASH_DIGEST_SIZE
BLAKE2s-224 hash function.
BLAKE2b-256 hash function.
Ripemd128Context ripemd128Context
Sha3_384Context sha3_384Context
SHA-512 algorithm context.
General definitions for cryptographic algorithms.
RIPEMD-160 algorithm context.
BLAKE2s algorithm context.
SHA-384 (Secure Hash Algorithm 384)
BLAKE2b algorithm context.
Sha224Context sha224Context
Whirlpool algorithm context.
Blake2s256Context blake2s256Context
RIPEMD-160 hash function.
SHA-512/224 (Secure Hash Algorithm)
SHA-256 (Secure Hash Algorithm 256)
BLAKE2s-256 hash function.
MD4 (Message-Digest Algorithm)
BLAKE2b-384 hash function.
MD5 (Message-Digest Algorithm)
MD2 (Message-Digest Algorithm)
Blake2s224Context blake2s224Context
TigerContext tigerContext
Ripemd160Context ripemd160Context
RIPEMD-128 algorithm context.
Blake2b384Context blake2b384Context
Sha512Context sha512Context
Sha512_256Context sha512_256Context
SHA3-256 hash function (SHA-3 with 256-bit output)
WhirlpoolContext whirlpoolContext
BLAKE2b-160 hash function.
BLAKE2b-512 hash function.
Blake2b256Context blake2b256Context
SHA-224 (Secure Hash Algorithm 224)