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

Example for the mcuxClKey component, showing a KDF according to the NIST SP108-800 Standard in Counter Mode using CMAC (AES256) More...

#include <mcuxClKey.h>
#include <mcuxClMac.h>
#include <mcuxClMacModes.h>
#include <mcuxClCore_Examples.h>
#include <mcuxClSession.h>
#include <mcuxClCore_FunctionIdentifiers.h>
#include <stdbool.h>
#include <mcuxClAes.h>
#include <mcuxClExample_Session_Helper.h>
#include <mcuxClExample_RNG_Helper.h>
#include <mcuxClEls.h>
#include <mcuxClExample_ELS_Helper.h>
#include <mcuxClExample_Key_Helper.h>

Functions

 MCUXCLEXAMPLE_FUNCTION (mcuxClKey_Derivation_CM_CMAC_example)
 Performs an example key derivation using the mcuxClKey component.
 

Variables

static const uint8_t inputKey [MCUXCLAES_AES256_KEY_SIZE]
 
static const uint8_t label [8]
 
static const uint8_t context [8]
 
static const uint8_t expectedDerivedKey [MCUXCLAES_AES256_KEY_SIZE]
 

Detailed Description

Example for the mcuxClKey component, showing a KDF according to the NIST SP108-800 Standard in Counter Mode using CMAC (AES256)

Function Documentation

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClKey_Derivation_CM_CMAC_example  )

Performs an example key derivation using the mcuxClKey component.

Return values
MCUXCLEXAMPLE_STATUS_OKThe example code completed successfully
MCUXCLEXAMPLE_STATUS_ERRORThe example code failed

Initialize ELS, Enable the ELS

Destroy Session and cleanup Session