NXP Reader Library  v17.1.0.2535
Component : Software

Software implementation of the Random Number interface. More...

Collaboration diagram for Component : Software:

Modules

 Internals
 Software implementation of the RND Generator.
 

Data Structures

struct  phCryptoRng_Sw_DataParams_t
 Data structure for Random Number's Software layer implementation. More...
 

Functions

phStatus_t phCryptoRng_Sw_Init (phCryptoRng_Sw_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pCryptoDataParams)
 Initialize the CryptoRng with software as sub-component. More...
 

Detailed Description

Software implementation of the Random Number interface.

The following standard is implemented:

Architecture overview of the Software Component

Function Documentation

◆ phCryptoRng_Sw_Init()

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

Initialize the CryptoRng with software as sub-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.
PH_ERR_INVALID_DATA_PARAMS
  • If the input size do not match the DataParams size of this component.
  • If the DataParams are null.
Parameters
[in]pDataParams[In] Pointer to this layers parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure.
[in]pCryptoDataParams[In] Pointer to the parameter structure of the symmetric crypto layer.