Sha2.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * Sha2.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include "HashApi/sha2.h"
14 #include "HashEngine.h"
15 #include "HashContext.h"
16 #include "HmacContext.h"
17 
18 namespace Crypto
19 {
24 
25 /*
26  * Hash contexts
27  */
28 
29 using Sha224 = HashContext<Sha224Engine>;
30 using Sha256 = HashContext<Sha256Engine>;
31 using Sha384 = HashContext<Sha384Engine>;
32 using Sha512 = HashContext<Sha512Engine>;
33 
34 /*
35  * HMAC contexts
36  */
37 
42 
43 } // namespace Crypto
#define SHA384_SIZE
Definition: sha2.h:65
#define SHA224_BLOCKSIZE
Definition: sha2.h:25
#define SHA224_SIZE
Definition: sha2.h:23
#define SHA256_SIZE
Definition: sha2.h:43
#define SHA224_STATESIZE
Definition: sha2.h:24
HashContext< Sha512Engine > Sha512
Definition: Sha2.h:40
HashContext< Sha384Engine > Sha384
Definition: Sha2.h:39
#define SHA384_BLOCKSIZE
Definition: sha2.h:67
#define SHA512_STATESIZE
Definition: sha2.h:93
#define SHA384_STATESIZE
Definition: sha2.h:66
#define SHA256_BLOCKSIZE
Definition: sha2.h:45
HashContext< Sha224Engine > Sha224
Definition: Sha2.h:37
HashContext< Sha256Engine > Sha256
Definition: Sha2.h:38
Definition: Blake2s.h:18
#define SHA256_STATESIZE
Definition: sha2.h:44
#define SHA512_SIZE
Definition: sha2.h:92
CRYPTO_HASH_ENGINE_STD(Md5, md5, MD5_SIZE, MD5_STATESIZE, MD5_BLOCKSIZE)
HMAC class template.
Definition: HmacContext.h:32
#define SHA512_BLOCKSIZE
Definition: sha2.h:94