MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClOsccaSm2_SelfTest.h File Reference

: Self test function prototype definitions for the OSCCA SM2 component More...

Go to the source code of this file.

Macros

#define MCUXCLOSCCASM2_STATUS_SELFTEST_OK
 
#define MCUXCLOSCCASM2_STATUS_SELFTEST_FAIL
 
#define MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACK
 

Typedefs

typedef uint32_t mcuxClOsccaSm2_SelfTest_Status_t
 SM2 selftest error codes

 

Functions

mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_EncDec_SelfTest (mcuxClSession_Handle_t session)
 This function tests the OSCCA SM2 encryption and decryption APIs.
 
mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_SignVerify_SelfTest (mcuxClSession_Handle_t session)
 This function tests the OSCCA SM2 signature and verification APIs.
 
mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_KeyExchange_SelfTest (mcuxClSession_Handle_t session)
 This function tests the OSCCA SM2 keyexchange APIs.
 

Detailed Description

: Self test function prototype definitions for the OSCCA SM2 component

Typedef Documentation

◆ mcuxClOsccaSm2_SelfTest_Status_t

SM2 selftest error codes

Function Documentation

◆ mcuxClOsccaSm2_EncDec_SelfTest()

mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_EncDec_SelfTest ( mcuxClSession_Handle_t  session)

This function tests the OSCCA SM2 encryption and decryption APIs.

Parameters
[in]sessionPointer to mcuxClSession_Descriptor
Returns
Result of the test
Return values
MCUXCLOSCCASM2_STATUS_SELFTEST_OKTest succeeded
MCUXCLOSCCASM2_STATUS_SELFTEST_FAILTest failed
MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACKChecking security counter failed or APIs returned FAULT_ATTACK

◆ mcuxClOsccaSm2_SignVerify_SelfTest()

mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_SignVerify_SelfTest ( mcuxClSession_Handle_t  session)

This function tests the OSCCA SM2 signature and verification APIs.

Parameters
[in]sessionPointer to mcuxClSession_Descriptor
Returns
Result of the test
Return values
MCUXCLOSCCASM2_STATUS_SELFTEST_OKTest succeeded
MCUXCLOSCCASM2_STATUS_SELFTEST_FAILTest failed
MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACKChecking security counter failed or APIs returned FAULT_ATTACK

◆ mcuxClOsccaSm2_KeyExchange_SelfTest()

mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_KeyExchange_SelfTest ( mcuxClSession_Handle_t  session)

This function tests the OSCCA SM2 keyexchange APIs.

Parameters
[in]sessionPointer to mcuxClSession_Descriptor
Returns
Result of the test
Return values
MCUXCLOSCCASM2_STATUS_SELFTEST_OKTest succeeded
MCUXCLOSCCASM2_STATUS_SELFTEST_FAILTest failed
MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACKChecking security counter failed or APIs returned FAULT_ATTACK