MPHELL
4.0.0
|
Definition of sha256 functions. More...
#include "mphell-sha256.h"
Go to the source code of this file.
Functions | |
void | sha256_transform (sha256_state *s, unsigned char data[]) |
Called each time 64 bytes are written, modify the state structure. More... | |
void | sha256_init (sha256_state *s) |
Initialise a sha256_state structure. More... | |
void | sha256_write (sha256_state *s, const uint8_t *data, uint64_t len) |
void | sha256_result (sha256_state *s, uint8_t *hash) |
void | sha256 (uint8_t *hashvalue, const uint8_t *data, const uint64_t data_len) |
Variables | |
static uint32_t | sha1_init_state [64] |
Definition of sha256 functions.
Definition in file mphell-sha256.c.
void sha256_init | ( | sha256_state * | s | ) |
Initialise a sha256_state structure.
s | Sha256 state structure to initialise |
Definition at line 93 of file mphell-sha256.c.
void sha256_transform | ( | sha256_state * | s, |
unsigned char | data[] | ||
) |
Called each time 64 bytes are written, modify the state structure.
s | Sha256 state structure to modify |
data | User data |
Definition at line 46 of file mphell-sha256.c.
|
static |
Definition at line 28 of file mphell-sha256.c.