Cipher component. More...
Topics | |
| mcuxClCipher_Constants | |
| Constants of mcuxClCipher component. | |
| mcuxClCipher_Functions | |
| Interfaces to perform Cipher operations. | |
| mcuxClCipher_Types | |
| Types used by the Cipher operations. | |
Cipher component.
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 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.