NXP NFC Reader Library
v4.040.05.011646
|
This is only a wrapper layer to abstract the different crypto random number generator implementations. More...
![]() |
Modules | |
Component : Software | |
Software implementation of the phCryptoRng interface. | |
Functions | |
phStatus_t | phCryptoRng_Seed (void *pDataParams, uint8_t *bSeed, uint8_t bSeedLength) |
Seeds the random number generator with the given seed. More... | |
phStatus_t | phCryptoRng_Rnd (void *pDataParams, uint16_t wNoOfRndBytes, uint8_t *pRnd) |
Obtains random bytes from the random source. More... | |
This is only a wrapper layer to abstract the different crypto random number generator implementations.
With this wrapper it is possible to support more than one crypto random number generator implementation in parallel, by adapting this wrapper.
Important hints for users of this component:
Seeds the random number generator with the given seed.
The seed length is dependend on the underlaying implementation. Further details can be found in the detailed description of the underlying layers.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bSeed | Seed |
[in] | bSeedLength | Size of the seed. |
Obtains random bytes from the random source.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wNoOfRndBytes | number of random bytes to generate |
[out] | pRnd | generated bytes; uint8_t[dwNumBytes] |