52 #define SHA256_HASH_BITS 256
53 #define SHA256_HASH_BYTES (SHA256_HASH_BITS/8)
54 #define SHA256_BLOCK_BITS 512
55 #define SHA256_BLOCK_BYTES (SHA256_BLOCK_BITS/8)
125 bool TempRegressionTest_SHA256(
void);
void sha256_nextBlock(sha256_ctx_t *state, const void *block)
update the context with a given block
Definition: sha256.cpp:122
void sha256(sha256_hash_t *dest, const void *msg, uint32_t length_b)
simple SHA-256 hashing function for direct hashing
Definition: sha256.cpp:213
void sha256_lastBlock(sha256_ctx_t *state, const void *block, uint16_t length_b)
finalize the context with the given block
Definition: sha256.cpp:169
uint8_t sha256_hash_t[SHA256_HASH_BYTES]
SHA-256 hash value type.
Definition: sha256.h:73
#define SHA256_HASH_BYTES
Definition: sha256.h:53
void sha256_init(sha256_ctx_t *state)
initialise a SHA-256 context
Definition: sha256.cpp:68
void sha256_ctx2hash(sha256_hash_t *dest, const sha256_ctx_t *state)
convert the hash state into the hash value This function reads the context and writes the hash value ...
Definition: sha256.cpp:229