SHA-256 message digest.
More...
#include <sha.h>
|
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API | StaticAlgorithmName () |
| The algorithm name.
|
|
std::string | AlgorithmProvider () const |
|
| CRYPTOPP_CONSTANT (DIGESTSIZE=T_DigestSize ? T_DigestSize :T_StateSize) |
|
unsigned int | DigestSize () const |
| Provides the digest size of the hash.
|
|
Clonable * | Clone () const |
| Create a copy of this object.
|
|
|
static void CRYPTOPP_API | InitState (HashWordType *state) |
| Initialize state array.
|
|
static void CRYPTOPP_API | Transform (HashWordType *digest, const HashWordType *data) |
| Operate the hash.
|
|
SHA-256 message digest.
- See also
- SHA-256
- Since
- SHA2 since Crypto++ 4.0, ARMv8 SHA since Crypto++ 6.0, Intel SHA since Crypto++ 6.0, Power8 SHA since Crypto++ 6.1
Definition at line 64 of file sha.h.
◆ AlgorithmProvider()
std::string SHA256::AlgorithmProvider |
( |
| ) |
const |
◆ HashMultipleBlocks()
size_t SHA256::HashMultipleBlocks |
( |
const HashWordType * |
input, |
|
|
size_t |
length |
|
) |
| |
|
protected |
◆ InitState()
void SHA256::InitState |
( |
HashWordType * |
state | ) |
|
|
static |
Initialize state array.
- Parameters
-
state | the state of the hash |
InitState sets a state array to SHA256 initial values
Hashes which derive from IteratedHashWithStaticTransform provide static member functions InitState and Transform. External classes, like SEAL and MDC, can initialize state with a user provided key and operate the hash on the data with the user supplied state.
- Note
- On Intel platforms the state array must be 16-byte aligned for SSE2.
Definition at line 509 of file sha.cpp.
◆ StaticAlgorithmName()
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API SHA256::StaticAlgorithmName |
( |
| ) |
|
|
inline |
The algorithm name.
- Returns
- C-style string "SHA-256"
Definition at line 90 of file sha.h.
◆ Transform()
void SHA256::Transform |
( |
HashWordType * |
digest, |
|
|
const HashWordType * |
data |
|
) |
| |
|
static |
Operate the hash.
- Parameters
-
digest | the state of the hash |
data | the data to be digested |
Transform operates the hash on data
. When the call is invoked digest
holds initial state. Upon return digest
holds the hash or updated state.
Hashes which derive from IteratedHashWithStaticTransform provide static member functions InitState and Transform. External classes, like SEAL and MDC, can initialize state with a user provided key and operate the hash on the data with the user supplied state.
- Note
- On Intel platforms the state array and data must be 16-byte aligned for SSE2.
Definition at line 858 of file sha.cpp.
The documentation for this class was generated from the following files:
- G:/work/subversion/scol-technologies/trunk/scol/plugins/security/cryptopp/sha.h
- G:/work/subversion/scol-technologies/trunk/scol/plugins/security/cryptopp/sha.cpp