Functions | |
| cy_en_cryptolite_status_t | Cy_Cryptolite_Trng (CRYPTOLITE_Type *base, uint32_t *randomNum) |
| Generates a True Random Number. More... | |
| cy_en_cryptolite_status_t | Cy_Cryptolite_Trng_Init (CRYPTOLITE_Type *base, cy_stc_cryptolite_trng_config_t *config) |
| Initialize the TRNG hardware submodule. More... | |
| cy_en_cryptolite_status_t | Cy_Cryptolite_Trng_Enable (CRYPTOLITE_Type *base) |
| Starts a random number generation. More... | |
| cy_en_cryptolite_status_t | Cy_Cryptolite_Trng_Disable (CRYPTOLITE_Type *base) |
| Stops the random number generation. More... | |
| cy_en_cryptolite_status_t | Cy_Cryptolite_Trng_ReadData (CRYPTOLITE_Type *base, uint32_t *randomData) |
| Reads in blocking mode a generated random number. More... | |
| cy_en_cryptolite_status_t | Cy_Cryptolite_Trng_DeInit (CRYPTOLITE_Type *base) |
| Clears all TRNG registers by set to hardware default values. More... | |
| bool | Cy_Cryptolite_Trng_IsEnabled (CRYPTOLITE_Type *base) |
| Checks if Trng is enabled. More... | |
| cy_en_cryptolite_status_t Cy_Cryptolite_Trng | ( | CRYPTOLITE_Type * | base, |
| uint32_t * | randomNum | ||
| ) |
Generates a True Random Number.
| base | The pointer to the cryptolite instance. |
| randomNum | The pointer to a generated true random number. |
| cy_en_cryptolite_status_t Cy_Cryptolite_Trng_Init | ( | CRYPTOLITE_Type * | base, |
| cy_stc_cryptolite_trng_config_t * | config | ||
| ) |
Initialize the TRNG hardware submodule.
| base | The pointer to the CRYPTOLITE instance. |
| config | The pointer to the configuration structure. If NULL default config is used. |
| cy_en_cryptolite_status_t Cy_Cryptolite_Trng_Enable | ( | CRYPTOLITE_Type * | base | ) |
Starts a random number generation.
| base | The pointer to the CRYPTOLITE instance. |
| cy_en_cryptolite_status_t Cy_Cryptolite_Trng_Disable | ( | CRYPTOLITE_Type * | base | ) |
Stops the random number generation.
| base | The pointer to the CRYPTOLITE instance. |
| cy_en_cryptolite_status_t Cy_Cryptolite_Trng_ReadData | ( | CRYPTOLITE_Type * | base, |
| uint32_t * | randomData | ||
| ) |
Reads in blocking mode a generated random number.
| base | The pointer to the CRYPTO instance. |
| randomData | The pointer to a generated true random number. |
| cy_en_cryptolite_status_t Cy_Cryptolite_Trng_DeInit | ( | CRYPTOLITE_Type * | base | ) |
Clears all TRNG registers by set to hardware default values.
| base | The pointer to the CRYPTOLITE instance. |
| bool Cy_Cryptolite_Trng_IsEnabled | ( | CRYPTOLITE_Type * | base | ) |
Checks if Trng is enabled.
| base | The pointer to the CRYPTOLITE instance. |