MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClHash

Hash component. More...

Modules

 mcuxClHash_Constants
 Constants of mcuxClHash component.
 
 mcuxClHash_Functions
 Defines all functions 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.

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

The mcuxClHash component supports interfaces to either hash a message in one shot (mcuxClHash_compute) or to hash it in parts (mcuxClHash_init, mcuxClHash_process, 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_process), 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_Algorithms.h

Note: In case the hashing functionality is based on a hardware co-processor, it might be necessary to initialize the co-processor, before it's use in the mcuxClHash component. Please refer to the example for further information on this.