ica_random_number_generate
Purpose
This function generates a pseudo random number. Parameter *ouput_data is a pointer to a buffer of byte length output_length. output_length number of bytes of pseudo random data is placed in the buffer pointed to by output_data.
Format
unsigned int ica_random_number_generate(unsigned int output_length,
unsigned char *output_data);
Required hardware support
KMC-PRNG
Parameters
- unsigned int output_length
- Length in bytes of the output_data buffer, and the length of the generated pseudo random number.
- unsigned char *output_data
- Pointer to the buffer to receive the generated pseudo random number.
Return codes
- 0
- Success
For return codes indicating exceptions, see Return codes.