MCUX CLNS
MCUX Crypto Library Normal Secure

Cipher component. More...

Modules

 mcuxClCipher_Constants
 Constants of mcuxClCipher component.
 
 One-shot Cipher interfaces
 Interfaces to perform Cipher operations in one shot.
 
 Multi-part Cipher interfaces
 Interfaces to perform Cipher operations in multiple parts.
 
 Cipher type definitions
 Types used by the Cipher operations.
 
 Cipher mode definitions
 Modes used by the Cipher operations.
 

Detailed Description

Cipher component.

Cipher operations.

The mcuxClCipher component implements the Encryption and Decryption functionality supported by CLNS. It supports Symmetric encryption algorithms.

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

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

The mcuxClCipher component supports interfaces to either encrypt/decrypt a message in one shot (mcuxClCipher_crypt) or to encrypt/decrypt it in parts (mcuxClCipher_init, mcuxClCipher_process, and mcuxClCipher_finish). In case of encrypting/decrypting a message in parts, first an initialization has to be performed (mcuxClCipher_init), followed by zero, one or multiple updates (mcuxClCipher_process), followed by a finalization (mcuxClCipher_finish). The finalization generates the encrypted/decrypted output data and destroys the context. After the finalization step, no further updates are possible.

The targeted encryption algorithm is selected by passing one of the offered algorithm mode descriptors, which are available in the mcuxClCipherModes components.