Example AES-128 CBC encryption using the ELS (CLNS component mcuxClEls. More...
#include <mcuxClEls.h>#include <mcuxCsslFlowProtection.h>#include <mcuxClCore_FunctionIdentifiers.h>#include <mcuxClCore_Examples.h>#include <mcuxClExample_ELS_Helper.h>Functions | |
| MCUXCLEXAMPLE_FUNCTION (mcuxClEls_Cipher_Aes128_Cbc_Encrypt_example) | |
| Performs AES-128 CBC encryption using mcuxClEls functions. More... | |
Variables | |
| static uint8_t const | aes128_input [MCUXCLELS_CIPHER_BLOCK_SIZE_AES] |
| Plaintext input for the AES encryption. More... | |
| static uint8_t | aes128_iv [MCUXCLELS_CIPHER_BLOCK_SIZE_AES] |
| IV of the AES encryption. More... | |
| static uint8_t const | aes128_expected_output [MCUXCLELS_CIPHER_BLOCK_SIZE_AES] |
| Expected ciphertext output of the AES encryption. More... | |
| static uint32_t const | aes128_key [MCUXCLELS_CIPHER_KEY_SIZE_AES_128/sizeof(uint32_t)] |
| Key for the AES encryption. More... | |
| static uint8_t | aes128_output [MCUXCLELS_CIPHER_BLOCK_SIZE_AES] |
| Destination buffer to receive the ciphertext output of the AES encryption. More... | |
Example AES-128 CBC encryption using the ELS (CLNS component mcuxClEls.
| MCUXCLEXAMPLE_FUNCTION | ( | mcuxClEls_Cipher_Aes128_Cbc_Encrypt_example | ) |
Performs AES-128 CBC encryption using mcuxClEls functions.
| MCUXCLEXAMPLE_OK | The example code completed successfully |
| MCUXCLEXAMPLE_ERROR | The example code failed |
Initialize ELS, Enable the ELS
Disable the ELS
|
static |
Plaintext input for the AES encryption.
|
static |
IV of the AES encryption.
|
static |
Expected ciphertext output of the AES encryption.
|
static |
Key for the AES encryption.
|
static |
Destination buffer to receive the ciphertext output of the AES encryption.