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

◆ lt_l2_recv_encrypted_res()

lt_ret_t lt_l2_recv_encrypted_res ( lt_l2_state_t s2,
uint8_t *  buff,
uint16_t  max_len 
)

Data are received into handle's l3_buff.

Note
Use only after secure session was established with lt_session_start().
Parameters
s2Structure holding l2 state
buffBuffer where encrypted l3 result will be stored
max_lenMaximal length of buff. Whole buffer might be used, or just its part.
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully