MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClEcc_Sign_Param_t Struct Reference

Parameter structure for function mcuxClEcc_Sign. More...

#include <mcuxClEcc_Types.h>

Data Fields

mcuxClEcc_DomainParam_t curveParam
 [in] structure of InputBuffers for curve parameters and length of parameters.
 
mcuxCl_InputBuffer_t pHash
 [in] InputBuffer for string of message digest (hash), of which the length is byteLenHash (in optLen).
 
const uint8_t * pPrivateKey
 [in] pointer to octet string of private key, which is of the same format as base point order n.
 
mcuxCl_Buffer_t pSignature
 [out] Buffer for memory area in which signature R and S will be exported if signature is generated successfully.
 
uint32_t optLen
 [in] packed options (reserved) and lengths: bits 0~7: byteLenHash: length of the string of message digest; bits 8~31: reserved.
 
const mcuxClEcc_ECDSA_SignatureProtocolDescriptor_tpMode
 [in] pointer to ECDSA protocol descriptor.
 

Detailed Description

Parameter structure for function mcuxClEcc_Sign.

Field Documentation

◆ curveParam

mcuxClEcc_DomainParam_t mcuxClEcc_Sign_Param_t::curveParam

[in] structure of InputBuffers for curve parameters and length of parameters.

◆ pHash

mcuxCl_InputBuffer_t mcuxClEcc_Sign_Param_t::pHash

[in] InputBuffer for string of message digest (hash), of which the length is byteLenHash (in optLen).

◆ pPrivateKey

const uint8_t* mcuxClEcc_Sign_Param_t::pPrivateKey

[in] pointer to octet string of private key, which is of the same format as base point order n.

◆ pSignature

mcuxCl_Buffer_t mcuxClEcc_Sign_Param_t::pSignature

[out] Buffer for memory area in which signature R and S will be exported if signature is generated successfully.

They will be stored as Big-endian octet strings of the exact length curveParam.byteLenN. The string of R is followed by the string of S.

◆ optLen

uint32_t mcuxClEcc_Sign_Param_t::optLen

[in] packed options (reserved) and lengths: bits 0~7: byteLenHash: length of the string of message digest; bits 8~31: reserved.

◆ pMode

const mcuxClEcc_ECDSA_SignatureProtocolDescriptor_t* mcuxClEcc_Sign_Param_t::pMode

[in] pointer to ECDSA protocol descriptor.