Provides the functions required to calculate a SHA-256 hash.
More...
#include <Imt.Base.Lib.Crypto/Sha256Hash.h>
|
| Sha256Hash (void) |
| Constructor.
|
|
virtual | ~Sha256Hash (void) |
| Destructor.
|
|
void | start () |
| Starts the calculation of a new digest.
|
|
void | update (const uint8_t *pBuffer, uint32_t bufferSize) |
| Updates the internal digest with the given buffer. More...
|
|
void | finish (uint8_t digest[DIGIST_SIZE]) |
| Finishes the calculation of a new digest. More...
|
|
|
static const uint32_t | DIGIST_SIZE = 32U |
| Defines the size of the SHA256 digest.
|
|
Provides the functions required to calculate a SHA-256 hash.
◆ finish()
void imt::base::lib::crypto::Sha256Hash::finish |
( |
uint8_t |
digest[DIGIST_SIZE] | ) |
|
Finishes the calculation of a new digest.
- Parameters
-
digest | The calculated digest |
◆ update()
void imt::base::lib::crypto::Sha256Hash::update |
( |
const uint8_t * |
pBuffer, |
|
|
uint32_t |
bufferSize |
|
) |
| |
Updates the internal digest with the given buffer.
- Parameters
-
pBuffer | The buffer to hash |
bufferSize | The size of the buffer |
The documentation for this class was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.Lib.Crypto/Sha256Hash.h