MCUX CLNS MCUX Crypto Library Normal Secure |

Data Fields
mcuxClEcc_KeyGen_Param_t Struct Reference
mcuxClEcc » mcuxClEcc_Types

Parameter structure for function mcuxClEcc_KeyGen. More...

`#include <mcuxClEcc_Types.h>`

## Data Fields
mcuxClEcc_DomainParam_t | curveParam
| [in] structure of pointers to curve parameters and length of parameters. More...
uint8_t * | pPrivateKey
| [out] pointer to memory area, where the private key will be exported if KeyGen is executed successfully. More...
uint8_t * | pPublicKey
| [out] pointer to memory area, where the public key will be exported if KeyGen is executed successfully. More...
uint32_t | optLen
| [in] packed options (reserved): bits 0~31: reserved. More...

## Detailed Description

Parameter structure for function mcuxClEcc_KeyGen.

## Field Documentation

## ◆ curveParam

mcuxClEcc_DomainParam_t mcuxClEcc_KeyGen_Param_t::curveParam

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

## ◆ pPrivateKey

uint8_t* mcuxClEcc_KeyGen_Param_t::pPrivateKey

[out] pointer to memory area, where the private key will be exported if KeyGen is executed successfully.

It will be stored as a Big-endian octet string of the exact length curveParam.byteLenN.

## ◆ pPublicKey

uint8_t* mcuxClEcc_KeyGen_Param_t::pPublicKey

[out] pointer to memory area, where the public key will be exported if KeyGen is executed successfully.

It will be stored in the same format as the base point G.

## ◆ optLen

uint32_t mcuxClEcc_KeyGen_Param_t::optLen

[in] packed options (reserved): bits 0~31: reserved.

CAUTION always set optLen = 0.