Example of SHA2-256 hashing using the ELS (CLNS component mcuxClEls) More...
#include <niobe4a.h>#include <mcuxClEls.h>#include <mcuxCsslFlowProtection.h>#include <mcuxClCore_FunctionIdentifiers.h>#include <mcuxClCore_Examples.h>#include <mcuxClExample_ELS_Helper.h>Macros | |
| #define | kCDOG_LockCtrl_Unlock |
| #define | kCDOG_FaultCtrl_EnableReset |
| #define | kCDOG_IrqPauseCtrl_Run |
| #define | kCDOG_DebugHaltCtrl_Pause |
Functions | |
| MCUXCLEXAMPLE_FUNCTION (mcuxClEls_Hash_HW_Security_Counter_example) | |
| Performs SHA2-256 hashing using mcuxClEls functions. More... | |
Variables | |
| static uint8_t const | sha256_padded_input [MCUXCLELS_HASH_BLOCK_SIZE_SHA_256] |
| Data input for SHA2-256 hashing. More... | |
| static uint8_t | sha256_reference_digest [MCUXCLELS_HASH_OUTPUT_SIZE_SHA_256] |
| Expected hash value. More... | |
| static uint8_t | sha2_256_digest [MCUXCLELS_HASH_STATE_SIZE_SHA_256] |
| Destination buffer to receive the hash output of the SHA2-256 hashing. More... | |
Example of SHA2-256 hashing using the ELS (CLNS component mcuxClEls)
| MCUXCLEXAMPLE_FUNCTION | ( | mcuxClEls_Hash_HW_Security_Counter_example | ) |
Performs SHA2-256 hashing using mcuxClEls functions.
| MCUXCLEXAMPLE_OK | The example code completed successfully |
| MCUXCLEXAMPLE_ERROR | The example code failed |
Initialize ELS, Enable the ELS
Disable the ELS
|
static |
Data input for SHA2-256 hashing.
|
static |
Expected hash value.
|
static |
Destination buffer to receive the hash output of the SHA2-256 hashing.