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
s2
Structure holding l2 state
buff
Buffer to be filled
count
Number of random bytes
Return values
LT_OK
Function executed successfully
LT_FAIL
Function did not execute successully
6.2. Layer 1: Port Interface
Generated by
1.9.8