#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
| typedef uint8_t | BYTE |
| |
| typedef uint32_t | WORD |
| |
◆ SHA256_BLOCK_SIZE
| #define SHA256_BLOCK_SIZE 32 |
◆ BYTE
◆ WORD
◆ CRYPT_compute_sha256_hash()
| void CRYPT_compute_sha256_hash |
( |
const uint8_t | message[], |
|
|
size_t | message_length, |
|
|
uint8_t | hash[32] ) |
Computes the SHA256 hash of the message and stores the 32 byte hash at hash.
- Parameters
-
| [in] | message | The message to hash |
| [in] | message_length | Length of the message in bytes |
| [out] | hash | Where the 32 byte hash is stored |
- Note
- Hashing 20x 4 KiB messages takes ~490ms.
◆ sha256_final()
◆ sha256_init()
◆ sha256_update()
| void sha256_update |
( |
SHA256_CTX * | ctx, |
|
|
const BYTE | data[], |
|
|
size_t | len ) |