![]() |
M480 BSP
V3.05.001
The Board Support Package for M480 Series
|
Functions | |
| void | TRNG_Open (void) |
| Initialize TRNG hardware. More... | |
| int32_t | TRNG_GenWord (uint32_t *u32RndNum) |
| Generate a 32-bits random number word. More... | |
| int32_t | TRNG_GenBignum (uint8_t u8BigNum[], int32_t i32Len) |
| Generate a big number in binary format. More... | |
| int32_t | TRNG_GenBignumHex (char cBigNumHex[], int32_t i32Len) |
| Generate a big number in hex format. More... | |
| int32_t TRNG_GenBignum | ( | uint8_t | u8BigNum[], |
| int32_t | i32Len | ||
| ) |
Generate a big number in binary format.
| [out] | u8BigNum | The output big number. |
| [in] | i32Len | Request bit length of the output big number. It must be multiple of 8. |
| 0 | Success |
| -1 | Time-out. TRNG hardware may not be enabled. |
| int32_t TRNG_GenBignumHex | ( | char | cBigNumHex[], |
| int32_t | i32Len | ||
| ) |
Generate a big number in hex format.
| [out] | cBigNumHex | The output hex format big number. |
| [in] | i32Len | Request bit length of the output big number. It must be multiple of 8. |
| 0 | Success |
| -1 | Time-out. TRNG hardware may not be enabled. |
| int32_t TRNG_GenWord | ( | uint32_t * | u32RndNum | ) |
1.8.15