Interfaces to perform Signature operations in one shot. More...
Functions | |
| mcuxClSignature_Status_t | mcuxClSignature_sign (mcuxClSession_Handle_t session, mcuxClKey_Handle_t key, mcuxClSignature_Mode_t mode, mcuxCl_InputBuffer_t pIn, uint32_t inSize, mcuxCl_Buffer_t pSignature, uint32_t *const pSignatureSize) |
| One-shot signing function. | |
| mcuxClSignature_Status_t | mcuxClSignature_verify_recordParam (mcuxClSession_Handle_t pSession, mcuxClSignature_Mode_t mode, mcuxCl_InputBuffer_t pIn, uint32_t inSize) |
| Record signature verification parameters for protection. | |
| mcuxClSignature_Status_t | mcuxClSignature_verify (mcuxClSession_Handle_t session, mcuxClKey_Handle_t key, mcuxClSignature_Mode_t mode, mcuxCl_InputBuffer_t pIn, uint32_t inSize, mcuxCl_InputBuffer_t pSignature, uint32_t signatureSize) |
| One-shot verification function. | |
Interfaces to perform Signature operations in one shot.
| mcuxClSignature_Status_t mcuxClSignature_sign | ( | mcuxClSession_Handle_t | session, |
| mcuxClKey_Handle_t | key, | ||
| mcuxClSignature_Mode_t | mode, | ||
| mcuxCl_InputBuffer_t | pIn, | ||
| uint32_t | inSize, | ||
| mcuxCl_Buffer_t | pSignature, | ||
| uint32_t *const | pSignatureSize ) |
One-shot signing function.
This function performs a signing operation in one shot. The algorithm to be used will be determined based on the key and mode that are provided.
For example, to perform an ECDSA signing operation over pre-hashed data with a 256-bit private key, the following needs to be provided:
| session | Handle for the current CL session. | |
| key | Key to be used to sign the data (word-aligned). | |
| mode | Signature mode that should be used during the signing operation. | |
| [in] | pIn | Pointer to the input buffer that contains the data that needs to be signed. |
| inSize | Number of bytes of data in the pIn buffer. | |
| [out] | pSignature | Pointer to the output buffer where the generated signature needs to be written. |
| [out] | pSignatureSize | Will be set to the number of bytes of data that have been written to the pSignature buffer. |
| mcuxClSignature_Status_t mcuxClSignature_verify_recordParam | ( | mcuxClSession_Handle_t | pSession, |
| mcuxClSignature_Mode_t | mode, | ||
| mcuxCl_InputBuffer_t | pIn, | ||
| uint32_t | inSize ) |
Record signature verification parameters for protection.
Records signature mode, input data pIn and inSize parameters for additional protection. This function must be called immediately before the mcuxClSignature_verify function call when ECDSA mode is requested. Failure to do so will result in a protection token mismatch during the signature verification.
| pSession | Handle for the current CL session. | |
| mode | Signature mode that should be used during the verification operation. | |
| [in] | pIn | Pointer to the input buffer that contains the data that has been signed. |
| inSize | Number of bytes of data in the pIn buffer. |
| mcuxClSignature_Status_t mcuxClSignature_verify | ( | mcuxClSession_Handle_t | session, |
| mcuxClKey_Handle_t | key, | ||
| mcuxClSignature_Mode_t | mode, | ||
| mcuxCl_InputBuffer_t | pIn, | ||
| uint32_t | inSize, | ||
| mcuxCl_InputBuffer_t | pSignature, | ||
| uint32_t | signatureSize ) |
One-shot verification function.
This function performs a signature verification operation in one shot. The algorithm to be used will be determined based on the key and mode that are provided.
For example, to perform an ECDSA signature verification operation with pre-hashed data and a 256-bit public key, the following needs to be provided:
| session | Handle for the current CL session. | |
| key | Key to be used to verify the pSignature (word-aligned). | |
| mode | Signature mode that should be used during the verification operation. | |
| [in] | pIn | Pointer to the input buffer that contains the data that has been signed. |
| inSize | Number of bytes of data in the pIn buffer. | |
| [in] | pSignature | Pointer to the buffer that contains the signature that needs to be verified. |
| signatureSize | Number of bytes of data in the pSignature buffer. |
#if defined(MCUXCL_FEATURE_SIGNATURE_VERIFY_PARAMETER_PROTECTION) && defined(MCUXCL_FEATURE_ECC_ECDSA_VERIFY)