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
inputbuffer holding the data
ilenlength of the input data
outputSHA-1 checksum result
void sha1_finish ( sha1_context_t ctx,
unsigned char  output[20] 
)

SHA-1 final digest.

Parameters
ctxSHA-1 context
outputSHA-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
keyHMAC secret key
inputbuffer holding the data
outputHMAC-SHA-1 result
void sha1_hmac_finish ( sha1_context_t ctx,
unsigned char  output[20] 
)

SHA-1 HMAC final digest.

Parameters
ctxHMAC context
outputSHA-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
ctxHMAC context to be initialized
keyHMAC secret key
keylenlength 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
ctxHMAC context
inputbuffer holding the data
ilenlength of the input data
void sha1_starts ( sha1_context_t ctx)

SHA-1 context setup.

Parameters
ctxcontext to be initialized
void sha1_update ( sha1_context_t ctx,
const unsigned char *  input,
int32_t  ilen 
)

SHA-1 process buffer.

Parameters
ctxSHA-1 context
inputbuffer holding the data
ilenlength of the input data