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

Example for the mcuxClKey component, showing a KDF according to the RFC5869 Standard using Hmac-Sha256. More...

#include <mcuxClKey.h>
#include <mcuxClHash.h>
#include <mcuxClHashModes.h>
#include <mcuxClHmac.h>
#include <mcuxClCore_Examples.h>
#include <mcuxClCore_Macros.h>
#include <mcuxClSession.h>
#include <mcuxClCore_FunctionIdentifiers.h>
#include <mcuxClAes.h>
#include <mcuxClExample_Session_Helper.h>
#include <mcuxClExample_RNG_Helper.h>
#include <mcuxClEls.h>
#include <mcuxClExample_ELS_Helper.h>

Macros

#define OUTPUT_KEY_LENGTH
 

Functions

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

Variables

static const uint8_t sharedSecret [22]
 
static const uint8_t fixedInfo [10]
 
static const uint8_t salt [13]
 
static const uint8_t expectedDerivedKey [OUTPUT_KEY_LENGTH]
 

Detailed Description

Example for the mcuxClKey component, showing a KDF according to the RFC5869 Standard using Hmac-Sha256.

Function Documentation

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClKey_Derivation_HKDF_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