Definition of sha512 functions. More...
#include "mphell-sha512.h"
Go to the source code of this file.
Functions | |
void | sha512_transform (sha512_state *s, unsigned char data[]) |
Called each time 64 bytes are written, modify the state structure. More... | |
void | sha512_init (sha512_state *s) |
Initialise a sha512_state structure. More... | |
void | sha512_write (sha512_state *s, const uint8_t *data, uint64_t len) |
void | sha512_result (sha512_state *s, uint8_t *hash) |
void | sha512 (uint8_t *hashvalue, const uint8_t *data, const uint64_t data_len) |
Variables | |
static uint64_t | sha512_init_state [80] |
Definition of sha512 functions.
Definition in file mphell-sha512.c.
void sha512_init | ( | sha512_state * | s | ) |
Initialise a sha512_state structure.
s | Sha512 state structure to initialise |
Definition at line 107 of file mphell-sha512.c.
void sha512_transform | ( | sha512_state * | s, |
unsigned char | data[] | ||
) |
Called each time 64 bytes are written, modify the state structure.
s | Sha512 state structure to modify |
data | User data |
Definition at line 60 of file mphell-sha512.c.
|
static |
Official documentation is: [FIPS-180] FIPS 180-4: Secure Hash Standard by the National Institute of Standards and Technology, august 2015, http://dx.doi.org/10.6028/NIST.FIPS.180-4
Definition at line 34 of file mphell-sha512.c.