Libtropic API
SDK for the TROPIC01 secure element
Version: master (latest)
Loading...
Searching...
No Matches

◆ lt_port_random_bytes()

lt_ret_t lt_port_random_bytes ( lt_l2_state_t s2,
void *  buff,
size_t  count 
)
Note
This function should use some cryptographically secure mechanism to generate the random bytes. Its speed should not be a concern, as this function is not called often.
Parameters
s2Structure holding l2 state
buffBuffer to be filled
countNumber of random bytes
Return values
LT_OKFunction executed successfully
LT_FAILFunction did not execute successully