Example OSCCA SM2 signature, including prehash, signature generation and signature verification. More...
#include <mcuxClSession.h>#include <mcuxClRandom.h>#include <mcuxClRandomModes.h>#include <mcuxClKey.h>#include <mcuxClHash.h>#include <mcuxClOsccaSm2.h>#include <mcuxClOsccaSm3.h>#include <mcuxClSignature.h>#include <mcuxClOsccaSm2_CommonParams.h>#include <mcuxCsslFlowProtection.h>#include <mcuxClOscca_FunctionIdentifiers.h>#include <mcuxClExample_Session_Helper.h>#include <mcuxClCore_Examples.h>#include <mcuxClExample_ELS_Helper.h>#include <mcuxClMemory.h>#include <mcuxClCore_FunctionIdentifiers.h>Macros | |
| #define | SIZE_WA_CPU |
| Maximum of the CPU workarea. | |
| #define | SIZE_WA_PKC |
| Maximum of the pkc workarea. | |
Functions | |
| MCUXCLEXAMPLE_FUNCTION (mcuxClOsccaSm2_Signature_SignVerify_FullFlow_example) | |
| Example OSCCA SM2 signature, including prehash, signature generation and signature verification. | |
Variables | |
| static const uint8_t | pSm2PrivateKey [MCUXCLOSCCASM2_SM2P256_SIZE_BASEPOINTORDER] |
| static const uint8_t | pSm2PublicKey [MCUXCLOSCCASM2_SM2P256_SIZE_PRIMEP *2] |
| static const uint8_t | Message [] |
| static const uint8_t | pIDentifier [] |
Example OSCCA SM2 signature, including prehash, signature generation and signature verification.
| #define SIZE_WA_CPU |
Maximum of the CPU workarea.
| #define SIZE_WA_PKC |
Maximum of the pkc workarea.
| MCUXCLEXAMPLE_FUNCTION | ( | mcuxClOsccaSm2_Signature_SignVerify_FullFlow_example | ) |
Example OSCCA SM2 signature, including prehash, signature generation and signature verification.
Initialize ELS, Enable the ELS
Destroy Session and cleanup Session
Disable the ELS