SHA1
SHA1 utilities. More...
Modules | |
Types | |
SHA1 data types. | |
Functions | |
void | sha1_starts (sha1_context_t *ctx) |
SHA-1 context setup. More... | |
void | sha1_update (sha1_context_t *ctx, const unsigned char *input, int32_t ilen) |
SHA-1 process buffer. More... | |
void | sha1_finish (sha1_context_t *ctx, unsigned char output[20]) |
SHA-1 final digest. More... | |
void | sha1 (const unsigned char *input, int32_t ilen, unsigned char output[20]) |
Output = SHA-1( input buffer ) More... | |
void | sha1_hmac_starts (sha1_context_t *ctx, const unsigned char *key, uint32_t keylen) |
SHA-1 HMAC context setup. More... | |
void | sha1_hmac_update (sha1_context_t *ctx, const unsigned char *input, uint32_t ilen) |
SHA-1 HMAC process buffer. More... | |
void | sha1_hmac_finish (sha1_context_t *ctx, unsigned char output[20]) |
SHA-1 HMAC final digest. More... | |
void | sha1_hmac (const zos_buffer_t *key, const zos_buffer_t *input, unsigned char output[20]) |
Output = HMAC-SHA-1( hmac key, input buffer ) More... | |
Detailed Description
SHA1 utilities.
Function Documentation
void sha1 | ( | const unsigned char * | input, |
int32_t | ilen, |
||
unsigned char | output[20] |
||
) |
Output = SHA-1( input buffer )
- Parameters
-
input
buffer holding the data ilen
length of the input data output
SHA-1 checksum result
void sha1_finish | ( | sha1_context_t * | ctx, |
unsigned char | output[20] |
||
) |
SHA-1 final digest.
- Parameters
-
ctx
SHA-1 context output
SHA-1 checksum result
void sha1_hmac | ( | const zos_buffer_t * | key, |
const zos_buffer_t * | input, |
||
unsigned char | output[20] |
||
) |
Output = HMAC-SHA-1( hmac key, input buffer )
- Parameters
-
key
HMAC secret key input
buffer holding the data output
HMAC-SHA-1 result
void sha1_hmac_finish | ( | sha1_context_t * | ctx, |
unsigned char | output[20] |
||
) |
SHA-1 HMAC final digest.
- Parameters
-
ctx
HMAC context output
SHA-1 HMAC checksum result
void sha1_hmac_starts | ( | sha1_context_t * | ctx, |
const unsigned char * | key, |
||
uint32_t | keylen |
||
) |
SHA-1 HMAC context setup.
- Parameters
-
ctx
HMAC context to be initialized key
HMAC secret key keylen
length of the HMAC key
void sha1_hmac_update | ( | sha1_context_t * | ctx, |
const unsigned char * | input, |
||
uint32_t | ilen |
||
) |
SHA-1 HMAC process buffer.
- Parameters
-
ctx
HMAC context input
buffer holding the data ilen
length of the input data
void sha1_starts | ( | sha1_context_t * | ctx | ) |
SHA-1 context setup.
- Parameters
-
ctx
context to be initialized
void sha1_update | ( | sha1_context_t * | ctx, |
const unsigned char * | input, |
||
int32_t | ilen |
||
) |
SHA-1 process buffer.
- Parameters
-
ctx
SHA-1 context input
buffer holding the data ilen
length of the input data