Example of version and configuration load functions.
Example of version and configuration load functions.
#include <mcuxClCore_Examples.h>
#include <mcuxClExample_ELS_Helper.h>
MCUXCLEXAMPLE_FUNCTION(mcuxClEls_Common_Get_Info_example)
{
{
return MCUXCLEXAMPLE_STATUS_ERROR;
}
{
return MCUXCLEXAMPLE_STATUS_ERROR;
}
(void) revision;
(void) minor;
(void) major;
#if !defined(MCUXCL_FEATURE_ELS_GET_FW_VERSION) || MCUXCL_FEATURE_ELS_GET_FW_VERSION == 0
(void) level;
#else
uint32_t fw_revision = hw_version.
bits.fw_revision;
uint32_t fw_minor = hw_version.
bits.fw_minor;
uint32_t fw_major = hw_version.
bits.fw_major;
(void) fw_revision;
(void) fw_minor;
(void) fw_major;
#endif
#ifdef MCUXCL_FEATURE_ELS_HWCONFIG
{
return MCUXCLEXAMPLE_STATUS_ERROR;
}
(void)ciphersup;
(void)authciphersup;
(void)ecsignsup;
(void)ecvfysup;
(void)eckxchsup;
(void)keygensup;
(void)keyinsup;
(void)keyoutsup;
(void)kdeletesup;
(void)ckdfsup;
(void)hkdfsup;
(void)tlsinitsup;
(void)hashsup;
(void)hmacsup;
(void)dtrgncfgloadsup;
(void)dtrngevalsup;
(void)sw_version;
if(!mcuxClExample_Els_Disable())
{
return MCUXCLEXAMPLE_STATUS_ERROR;
}
#endif
return MCUXCLEXAMPLE_STATUS_OK;
}
Definition of function identifiers for the flow protection mechanism.
Top-level include file for the ELS driver.
CLNS header for component-independent functionality.
static char const * mcuxCl_GetVersion(void)
Gets the CLNS version string that uniquely identifies this release of the CLNS.
Definition mcuxCl_clns.h:60
Provides the API for the CSSL flow protection mechanism.
#define MCUXCLELS_RESET_DO_NOT_CANCEL
Set this option at mcuxClEls_ResetOption_t to abort the requested command if another ELS operation is...
Definition mcuxClEls_Common.h:139
#define drbgreqsub
Deprecated name for mcuxClEls_HwConfig_t.drbgreqsup.
Definition mcuxClEls_Common.h:392
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GetHwVersion(mcuxClEls_HwVersion_t *result)
Determines the version of the underlying ELS hardware IP.
#define MCUXCLELS_STATUS_OK
No error occurred.
Definition mcuxClEls_Types.h:191
#define MCUX_CSSL_FP_FUNCTION_CALL_BEGIN(...)
Call a flow protected function and check the protection token.
Definition mcuxCsslFlowProtection.h:601
#define MCUX_CSSL_FP_FUNCTION_CALLED(...)
Expectation of a called function.
Definition mcuxCsslFlowProtection.h:755
#define MCUX_CSSL_FP_FUNCTION_CALL_END(...)
End a function call section started by MCUX_CSSL_FP_FUNCTION_CALL_BEGIN.
Definition mcuxCsslFlowProtection.h:636
Result type of mcuxClEls_GetHwVersion.
Definition mcuxClEls_Common.h:215
uint32_t major
Major version.
Definition mcuxClEls_Common.h:224
uint32_t revision
Revision number.
Definition mcuxClEls_Common.h:222
uint32_t level
Release level version.
Definition mcuxClEls_Common.h:226
uint32_t minor
Minor version.
Definition mcuxClEls_Common.h:223
struct mcuxClEls_HwVersion_t::@346367344225030065206101344321245336166357316160 bits
Access mcuxClEls_HwVersion_t bit-wise.
Result type of mcuxClEls_GetHwConfig.
Definition mcuxClEls_Common.h:359
uint32_t ckdfsup
Indicates whether the ckdf command is supported.
Definition mcuxClEls_Common.h:376
uint32_t ecvfysup
Indicates whether the ecvfy command is supported.
Definition mcuxClEls_Common.h:369
uint32_t keyinsup
Indicates whether the keyin command is supported.
Definition mcuxClEls_Common.h:372
uint32_t dtrgncfgloadsup
Indicates whether the dtrng_cfg_load command is is supported.
Definition mcuxClEls_Common.h:384
uint32_t hmacsup
Indicates whether the hmac command is supported.
Definition mcuxClEls_Common.h:380
uint32_t keyoutsup
Indicates whether the keyout command is supported.
Definition mcuxClEls_Common.h:373
uint32_t dtrngevalsup
Indicates whether the dtrng_eval command is supported.
Definition mcuxClEls_Common.h:385
uint32_t tlsinitsup
Indicates whether the tls_init command is supported.
Definition mcuxClEls_Common.h:378
uint32_t ecsignsup
Indicates whether the ecsign command is supported.
Definition mcuxClEls_Common.h:368
uint32_t ciphersup
Indicates whether the cipher command is supported.
Definition mcuxClEls_Common.h:366
uint32_t hashsup
Indicates whether the hash command is supported.
Definition mcuxClEls_Common.h:379
uint32_t eckxchsup
Indicates whether the dhkey_xch command is supported.
Definition mcuxClEls_Common.h:370
uint32_t authciphersup
Indicates whether the auth_cipher command is supported.
Definition mcuxClEls_Common.h:367
struct mcuxClEls_HwConfig_t::@276057117153110312031236124133256121363314124314 bits
Access mcuxClEls_InterruptOptionSet_t bit-wise.
uint32_t keygensup
Indicates whether the keygen command is supported.
Definition mcuxClEls_Common.h:371
uint32_t hkdfsup
Indicates whether the hkdf command is supported.
Definition mcuxClEls_Common.h:377
uint32_t kdeletesup
Indicates whether the kdelete command is supported.
Definition mcuxClEls_Common.h:374