Example for generating and exporting internal key. More...
#include "common.h"
#include <mcuxClEls.h>
#include <mcuxClSession.h>
#include <mcuxClKey.h>
#include <mcuxCsslFlowProtection.h>
#include <mcuxClToolchain.h>
#include <stdbool.h>
#include <mcuxClPsaDriver.h>
#include <mcuxClCore_Examples.h>
Macros | |
#define | LIFETIME_INTERNAL |
#define | LIFETIME_EXTERNAL |
Functions | |
static const uint8_t expectKeyRet [MCUXCLELS_ECC_PUBLICKEY_SIZE] | __attribute__ ((aligned(4))) |
static bool | load_key_udf (mcuxClEls_KeyIndex_t targetKeyIdx, mcuxClEls_KeyProp_t targetKeyProperties, uint8_t *pOutKey) |
Internal function that loads a known key into the ELS key store via mcuxClEls_KeyProvision_Async. More... | |
static bool | rfc3394_wrap (const uint8_t *pInput, size_t inputLength, mcuxClEls_KeyIndex_t keyIdx, uint8_t *pOutput, mcuxClEls_KeyProp_t properties) |
Internal function that performs RFC3394 key wrapping. More... | |
bool | mcuxClPsaDriver_keygen_export_public_key_oracle_example (void) |
Example for generating and exporting internal key.
|
static |
Internal function that loads a known key into the ELS key store via mcuxClEls_KeyProvision_Async.
targetKeyIdx | The key index at which the key shall be loaded |
targetKeyProperties | The target properties of the key |
pOutKey | Pointer to a memory location which receives the key which was loaded |
|
static |
Internal function that performs RFC3394 key wrapping.
true | Wrapping successful. |
false | Wrapping error. |