MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClAeadModes_Oneshot_Els_Gcm_Example.c File Reference

: Example Aead application More...

#include <mcuxClExample_ELS_Helper.h>
#include <mcuxClExample_Session_Helper.h>
#include <mcuxClExample_Key_Helper.h>
#include <mcuxClEls.h>
#include <mcuxClSession.h>
#include <mcuxClKey.h>
#include <mcuxClAes.h>
#include <mcuxClAead.h>
#include <mcuxClAeadModes.h>
#include <mcuxCsslFlowProtection.h>
#include <mcuxClCore_FunctionIdentifiers.h>
#include <mcuxClToolchain.h>
#include <mcuxClCore_Examples.h>
#include <stdbool.h>
#include <mcuxClExample_RNG_Helper.h>

Functions

 MCUXCLEXAMPLE_FUNCTION (mcuxClAeadModes_Oneshot_Els_Gcm_Example)
 

Variables

static uint8_t aes128_key [16u]
 Key for the AES encryption. More...
 
static uint8_t aes128_iv [12u]
 IV of the AES encryption. More...
 
static uint8_t const msg_plain [16u]
 Plaintext input for the AES encryption. More...
 
static uint8_t const msg_adata [16u]
 Additional authenticated data. More...
 
static uint8_t const msg_enc_expected [16u]
 Expected ciphertext output of the AES-GCM encryption. More...
 
static uint8_t const msg_tag_expected [16u]
 Expected authentication tag output. More...
 

Detailed Description

: Example Aead application

Function Documentation

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClAeadModes_Oneshot_Els_Gcm_Example  )

Initialize ELS, MCUXCLELS_RESET_DO_NOT_CANCEL

Destroy Session and cleanup Session

Disable the ELS

Variable Documentation

◆ aes128_key

uint8_t aes128_key[16u]
static

Key for the AES encryption.

◆ aes128_iv

uint8_t aes128_iv[12u]
static

IV of the AES encryption.

◆ msg_plain

uint8_t const msg_plain[16u]
static

Plaintext input for the AES encryption.

◆ msg_adata

uint8_t const msg_adata[16u]
static

Additional authenticated data.

◆ msg_enc_expected

uint8_t const msg_enc_expected[16u]
static

Expected ciphertext output of the AES-GCM encryption.

◆ msg_tag_expected

uint8_t const msg_tag_expected[16u]
static

Expected authentication tag output.