MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClAeadModes_Els_Gcm_Aes128_Oneshot_example.c File Reference

: Example Aead application More...

#include <mcuxClToolchain.h>
#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 <mcuxClCore_Examples.h>
#include <stdbool.h>
#include <mcuxClExample_RNG_Helper.h>

Functions

 MCUXCLEXAMPLE_FUNCTION (mcuxClAeadModes_Els_Gcm_Aes128_Oneshot_example)
 

Variables

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

Detailed Description

: Example Aead application

Function Documentation

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClAeadModes_Els_Gcm_Aes128_Oneshot_example  )

Initialize ELS, MCUXCLELS_RESET_DO_NOT_CANCEL

Destroy Session and cleanup Session

Disable the ELS

Variable Documentation

◆ aes128_key

ALIGNED uint8_t aes128_key[16u]
static

Key for the AES encryption.

◆ aes128_iv

ALIGNED uint8_t aes128_iv[12u]
static

IV of the AES encryption.

◆ msg_plain

ALIGNED uint8_t const msg_plain[16u]
static

Plaintext input for the AES encryption.

◆ msg_adata

ALIGNED uint8_t const msg_adata[16u]
static

Additional authenticated data.

◆ msg_enc_expected

ALIGNED uint8_t const msg_enc_expected[16u]
static

Expected ciphertext output of the AES-GCM encryption.

◆ msg_tag_expected

ALIGNED uint8_t const msg_tag_expected[16u]
static

Expected authentication tag output.