MCUX CLNS
MCUX Crypto Library Normal Secure
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 pointers to curve parameters and length of parameters. More...
 
const uint8_t * pHash
 [in] pointer to string of message digest (hash), of which the length is byteLenHash (in optLen). More...
 
const uint8_t * pPrivateKey
 [in] pointer to octet string of private key, which is of the same format as base point order n. More...
 
uint8_t * pSignature
 [out] pointer to memory area in which signature R and S will be exported if signature is generated successfully. More...
 
uint32_t optLen
 [in] packed options (reserved) and lengths: bits 0~7: byteLenHash: length of the string of message digest; bits 8~31: reserved. More...
 

Detailed Description

Parameter structure for function mcuxClEcc_Sign.

Field Documentation

◆ curveParam

mcuxClEcc_DomainParam_t mcuxClEcc_Sign_Param_t::curveParam

[in] structure of pointers to curve parameters and length of parameters.

◆ pHash

const uint8_t* mcuxClEcc_Sign_Param_t::pHash

[in] pointer to 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

uint8_t* mcuxClEcc_Sign_Param_t::pSignature

[out] pointer to 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.