: Self test function prototype definitions for the OSCCA SM2 component More...
#include <mcuxClSession.h>#include <mcuxClHash.h>#include <mcuxClOsccaSm3_Constants.h>#include <mcuxClOsccaSm2.h>#include <mcuxClKey.h>#include <mcuxCsslFlowProtection.h>#include <mcuxClOscca_FunctionIdentifiers.h>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. | |
: Self test function prototype definitions for the OSCCA SM2 component
| typedef uint32_t mcuxClOsccaSm2_SelfTest_Status_t |
SM2 selftest error codes
| mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_EncDec_SelfTest | ( | mcuxClSession_Handle_t | session | ) |
This function tests the OSCCA SM2 encryption and decryption APIs.
| [in] | session | Pointer to mcuxClSession_Descriptor |
| MCUXCLOSCCASM2_STATUS_SELFTEST_OK | Test succeeded |
| MCUXCLOSCCASM2_STATUS_SELFTEST_FAIL | Test failed |
| MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACK | Checking security counter failed or APIs returned FAULT_ATTACK |
| mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_SignVerify_SelfTest | ( | mcuxClSession_Handle_t | session | ) |
This function tests the OSCCA SM2 signature and verification APIs.
| [in] | session | Pointer to mcuxClSession_Descriptor |
| MCUXCLOSCCASM2_STATUS_SELFTEST_OK | Test succeeded |
| MCUXCLOSCCASM2_STATUS_SELFTEST_FAIL | Test failed |
| MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACK | Checking security counter failed or APIs returned FAULT_ATTACK |
| mcuxClOsccaSm2_SelfTest_Status_t mcuxClOsccaSm2_KeyExchange_SelfTest | ( | mcuxClSession_Handle_t | session | ) |
This function tests the OSCCA SM2 keyexchange APIs.
| [in] | session | Pointer to mcuxClSession_Descriptor |
| MCUXCLOSCCASM2_STATUS_SELFTEST_OK | Test succeeded |
| MCUXCLOSCCASM2_STATUS_SELFTEST_FAIL | Test failed |
| MCUXCLOSCCASM2_STATUS_SELFTEST_FAULT_ATTACK | Checking security counter failed or APIs returned FAULT_ATTACK |