Example for the mcuxClKey component, showing a KDF according to the NIST SP800-56C Standard in TwoStep mode Using CMAC-AES128. More...
#include <mcuxClKey.h>#include <mcuxClHash.h>#include <mcuxClMacModes.h>#include <mcuxClHmac.h>#include <mcuxClCore_Examples.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>#include <mcuxClExample_Key_Helper.h>Functions | |
| MCUXCLEXAMPLE_FUNCTION (mcuxClKey_Derivation_SP800_56C_twostep_cmac_example) | |
| Performs an example key derivation using the mcuxClKey component. | |
Variables | |
| static const uint8_t | sharedSecret [16] |
| static const uint8_t | label [2] |
| static const uint8_t | context [2] |
| static const uint8_t | expectedDerivedKey [] |
Example for the mcuxClKey component, showing a KDF according to the NIST SP800-56C Standard in TwoStep mode Using CMAC-AES128.
| MCUXCLEXAMPLE_FUNCTION | ( | mcuxClKey_Derivation_SP800_56C_twostep_cmac_example | ) |
Performs an example key derivation using the mcuxClKey component.
| MCUXCLEXAMPLE_STATUS_OK | The example code completed successfully |
| MCUXCLEXAMPLE_STATUS_ERROR | The example code failed |
Initialize ELS, Enable the ELS
Destroy Session and cleanup Session