nRF5 SDK v13.0.0
Functions
crys_ecpki_kg

Defines the API for generation of ECC private and public keys. More...

Functions

CRYSError_t CRYS_ECPKI_GenKeyPair (CRYS_RND_Context_t *pRndContext, const CRYS_ECPKI_Domain_t *pDomain, CRYS_ECPKI_UserPrivKey_t *pUserPrivKey, CRYS_ECPKI_UserPublKey_t *pUserPublKey, CRYS_ECPKI_KG_TempData_t *pTempData, CRYS_ECPKI_KG_FipsContext_t *pFipsCtx)
 Generates a pair of private and public keys in internal representation according to [ANS X9.62]. More...
 

Detailed Description

Defines the API for generation of ECC private and public keys.

Function Documentation

CRYSError_t CRYS_ECPKI_GenKeyPair ( CRYS_RND_Context_t pRndContext,
const CRYS_ECPKI_Domain_t pDomain,
CRYS_ECPKI_UserPrivKey_t pUserPrivKey,
CRYS_ECPKI_UserPublKey_t pUserPublKey,
CRYS_ECPKI_KG_TempData_t pTempData,
CRYS_ECPKI_KG_FipsContext_t pFipsCtx 
)

Generates a pair of private and public keys in internal representation according to [ANS X9.62].

Returns
CRYS_OK on success.
A non-zero value on failure as defined crys_ecpki_error.h.
Parameters
[in,out]pRndContextPointer to the RND context buffer.
[in]pDomainPointer to EC domain (curve).
[out]pUserPrivKeyPointer to the private key structure. This structure is used as input to the ECPKI cryptographic primitives.
[out]pUserPublKeyPointer to the public key structure. This structure is used as input to the ECPKI cryptographic primitives.
[in]pTempDataTemporary buffers for internal use, defined in CRYS_ECPKI_KG_TempData_t.
[in]pFipsCtxPointer to temporary buffer used in case FIPS certification if required.

Documentation feedback | Developer Zone | Subscribe | Updated