ELS header for symmetric ciphers. More...
Go to the source code of this file.
Data Structures | |
| union | mcuxClEls_CipherOption_t |
| Command option bit field for #mcuxClEls_Cipher_Async. More... | |
Macros | |
| #define | MCUXCLELS_CIPHER_ENCRYPT |
| Set this option at mcuxClEls_CipherOption_t.dcrpt to perform an encryption. More... | |
| #define | MCUXCLELS_CIPHER_DECRYPT |
| Set this option at mcuxClEls_CipherOption_t.dcrpt to perform a decryption. More... | |
| #define | MCUXCLELS_CIPHER_STATE_OUT_ENABLE |
Set this option at mcuxClEls_CipherOption_t.cphsoe to export the internal ELS state to pIV. More... | |
| #define | MCUXCLELS_CIPHER_STATE_OUT_DISABLE |
| Set this option at mcuxClEls_CipherOption_t.cphsoe to not export the internal ELS state. More... | |
| #define | MCUXCLELS_CIPHER_STATE_IN_ENABLE |
Set this option at mcuxClEls_CipherOption_t.cphsie to import an external ELS state from pIV. More... | |
| #define | MCUXCLELS_CIPHER_STATE_IN_DISABLE |
| Set this option at mcuxClEls_CipherOption_t.cphsie to not import an external ELS state. More... | |
| #define | MCUXCLELS_CIPHER_EXTERNAL_KEY |
Set this option at mcuxClEls_CipherOption_t.extkey to use a key located in CPU memory provided by pKey. More... | |
| #define | MCUXCLELS_CIPHER_INTERNAL_KEY |
Set this option at mcuxClEls_CipherOption_t.extkey to use a key located in ELS keystore privded by keyIdx. More... | |
| #define | MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_ECB |
| Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Electornic Code Book (ECB) mode. More... | |
| #define | MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CBC |
| Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Cipher Block Chaining (CBC) mode. More... | |
| #define | MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CTR |
| Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Counter (CTR) mode. More... | |
| #define | MCUXCLELS_CIPHER_BLOCK_SIZE_AES |
| #define | MCUXCLELS_CIPHER_KEY_SIZE_AES_128 |
| Size of an AES128 key: 128 bit (16 bytes) More... | |
| #define | MCUXCLELS_CIPHER_KEY_SIZE_AES_192 |
| Size of an AES192 key: 192 bit (24 bytes) More... | |
| #define | MCUXCLELS_CIPHER_KEY_SIZE_AES_256 |
| Size of an AES192 key: 256 bit (32 bytes) More... | |
Functions | |
| MCUXCLELS_API | MCUX_CSSL_FP_PROTECTED_TYPE (mcuxClEls_Status_t) mcuxClEls_Cipher_Async(mcuxClEls_CipherOption_t options |
| Performs AES encryption/decryption. More... | |
Variables | |
| MCUXCLELS_API mcuxClEls_KeyIndex_t | keyIdx |
| MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t const * | pKey |
| MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t const size_t | keyLength |
| MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t const size_t uint8_t const * | pInput |
| MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t const size_t uint8_t const size_t | inputLength |
| MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t const size_t uint8_t const size_t uint8_t * | pIV |
| MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t const size_t uint8_t const size_t uint8_t uint8_t * | pOutput |
ELS header for symmetric ciphers.
This header exposes functions that enable using the ELS for symmetric encryption/decryption. The cipher algorithm supported by ELS is AES in the following modes: