NXP NFC Reader Library  v4.040.05.011646
Component : Software

Software implementation of the phCryptoRng interface. More...

Collaboration diagram for Component : Software:

Data Structures

struct  phCryptoRng_Sw_DataParams_t
 Software parameter structure. More...
 

Macros

#define PH_CRYPTORNG_SW_ID   0x01
 ID for Software crypto rng component. More...
 

Functions

phStatus_t phCryptoRng_Sw_Init (phCryptoRng_Sw_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pCryptoDataParams)
 Initialise the CryptoRnd component. More...
 

Detailed Description

Software implementation of the phCryptoRng interface.

The following standard is implemented:

Architecture overview of the phCryptoRng_Sw Component

Macro Definition Documentation

§ PH_CRYPTORNG_SW_ID

#define PH_CRYPTORNG_SW_ID   0x01

ID for Software crypto rng component.

Function Documentation

§ phCryptoRng_Sw_Init()

phStatus_t phCryptoRng_Sw_Init ( phCryptoRng_Sw_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pCryptoDataParams 
)

Initialise the CryptoRnd component.

For seeding, the following considerations have to be taken:

  • Take a seed of at 32 bytes, which consists of
    • entropy input
    • nonce
    • personalization string.
Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParamsPointer to this layers parameter structure.
[in]wSizeOfDataParamsSpecifies the size of the data parameter structure.
[in]pCryptoDataParamsPointer to the parameter structure of the symmetric crypto layer.