Loading...
Searching...
No Matches

Implementation of common functionality for SHA-224/256 hashing functions. More...

Detailed Description

Implementation of common functionality for SHA-224/256 hashing functions.

Files

file  sha2xx_common.h
 Common definitions for the SHA-224/256 hash functions.
 

Data Structures

struct  sha2xx_context_t
 Structure to hold the SHA-2XX context. More...
 

Functions

void sha2xx_pad (sha2xx_context_t *ctx)
 SHA-2XX initialization.
 
void sha2xx_update (sha2xx_context_t *ctx, const void *data, size_t len)
 Add bytes into the hash.
 
void sha2xx_final (sha2xx_context_t *ctx, void *digest, size_t dig_len)
 SHA-2XX finalization.
 

Function Documentation

◆ sha2xx_final()

void sha2xx_final ( sha2xx_context_t ctx,
void *  digest,
size_t  dig_len 
)

SHA-2XX finalization.

Pads the input data, exports the hash value, and clears the context state.

Parameters
ctxsha2xx_context_t handle to use
digestresulting digest, this is the hash of all the bytes
dig_lenLength of digest

◆ sha2xx_pad()

void sha2xx_pad ( sha2xx_context_t ctx)

SHA-2XX initialization.

Begins a SHA-2XX operation.

Parameters
ctxsha2xx_context_t handle to init

◆ sha2xx_update()

void sha2xx_update ( sha2xx_context_t ctx,
const void *  data,
size_t  len 
)

Add bytes into the hash.

Parameters
ctxsha2xx_context_t handle to use
[in]dataInput data
[in]lenLength of data