SHA4
SHA4 utilities. More...
Modules | |
Types | |
SHA4 data types. | |
Functions | |
void | sha4_starts (sha4_context_t *ctx, int32_t is384) |
SHA-512 context setup. More... | |
void | sha4_update (sha4_context_t *ctx, const unsigned char *input, int32_t ilen) |
SHA-512 process buffer. More... | |
void | sha4_finish (sha4_context_t *ctx, unsigned char output[64]) |
SHA-512 final digest. More... | |
void | sha4 (const unsigned char *input, int32_t ilen, unsigned char output[64], int32_t is384) |
Output = SHA-512( input buffer ) More... | |
Detailed Description
SHA4 utilities.
Function Documentation
void sha4 | ( | const unsigned char * | input, |
int32_t | ilen, |
||
unsigned char | output[64], |
||
int32_t | is384 |
||
) |
Output = SHA-512( input buffer )
- Parameters
-
input
buffer holding the data ilen
length of the input data output
SHA-384/512 checksum result is384
0 = use SHA512, 1 = use SHA384
void sha4_finish | ( | sha4_context_t * | ctx, |
unsigned char | output[64] |
||
) |
SHA-512 final digest.
- Parameters
-
ctx
SHA-512 context output
SHA-384/512 checksum result
void sha4_starts | ( | sha4_context_t * | ctx, |
int32_t | is384 |
||
) |
SHA-512 context setup.
- Parameters
-
ctx
context to be initialized is384
0 = use SHA512, 1 = use SHA384
void sha4_update | ( | sha4_context_t * | ctx, |
const unsigned char * | input, |
||
int32_t | ilen |
||
) |
SHA-512 process buffer.
- Parameters
-
ctx
SHA-512 context input
buffer holding the data ilen
length of the input data