MCUX CLNS MCUX Crypto Library Normal Secure |

Modules
mcuxClHash

Hash component. More...

## Modules
| mcuxClHash_Constants
| Constants of mcuxClHash component.
| mcuxClHash_Functions
| Defines all functions of mcuxClHash.
| mcuxClHash_Macros
| Defines all macros of mcuxClHash.
| mcuxClHash_Types
| Defines all types of the mcuxClHash component.

## Detailed Description

Hash component.

The mcuxClHash component implements the Hash functionality supported by CLNS. It supports SHA-2 algorithms based on NIST FIPS PUB 180-4.

An example of how to use the mcuxClHash component can be found in /mcuxClHash/ex.

The component uses the CSS hardware. The CSS hardware has to be initialized, prior to calling any function of the mcuxClHash component.

The mcuxClHash component supports interfaces to either hash a message in one shot (mcuxClHash_compute) or to hash it in parts (mcuxClHash_init, mcuxClHash_update, and mcuxClHash_finish). In case of hashing a message in parts, first an initialization has to be performed (mcuxClHash_init), followed by zero, one or multiple updates (mcuxClHash_update), followed by a finalization (mcuxClHash_finish). The finalization generates the output data (digest) and destroys the context. After the finalization step, no further updates are possible.

The targeted hash algorithm is selected by passing one of the offered algorithm mode descriptors (mcuxClHash_Modes), which are listed in file mcuxClHash_Constants.h