Sming Framework API
()
Toggle main menu visibility
Sming
Components
crypto
include
Crypto
Sha1.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
* Sha1.h
8
*
9
****/
10
11
#pragma once
12
13
#include "
HashApi/sha1.h
"
14
#include "
HashEngine.h
"
15
#include "
HashContext.h
"
16
#include "
HmacContext.h
"
17
18
namespace
Crypto
19
{
20
CRYPTO_HASH_ENGINE_STD
(
Sha1
, sha1,
SHA1_SIZE
,
SHA1_STATESIZE
,
SHA1_BLOCKSIZE
);
21
22
using
Sha1
=
HashContext<Sha1Engine>
;
23
24
using
HmacSha1
=
HmacContext<Sha1>
;
25
26
}
// namespace Crypto
HashContext.h
HashEngine.h
HmacContext.h
Crypto::HashContext
Class template for a Hash implementation 'Context'.
Definition:
HashContext.h:23
Crypto::HmacContext
HMAC class template.
Definition:
HmacContext.h:25
Crypto
Definition:
Blake2s.h:19
Crypto::CRYPTO_HASH_ENGINE_STD
CRYPTO_HASH_ENGINE_STD(Md5, md5, MD5_SIZE, MD5_STATESIZE, MD5_BLOCKSIZE)
sha1.h
SHA1_BLOCKSIZE
#define SHA1_BLOCKSIZE
Definition:
sha1.h:21
SHA1_STATESIZE
#define SHA1_STATESIZE
Definition:
sha1.h:20
SHA1_SIZE
#define SHA1_SIZE
Definition:
sha1.h:19
Generated by
1.9.1