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

◆ lt_in__session_start()

lt_ret_t lt_in__session_start ( lt_handle_t h,
const uint8_t *  stpub,
const lt_pkey_index_t  pkey_index,
const uint8_t *  shipriv,
const uint8_t *  shipub,
lt_host_eph_keys_t host_eph_keys 
)

Designed to be used together with lt_out__session_start(), lt_l2_send() and lt_l2_receive().

Note
Secure session will be established after successful execution. For more information read info at the top of this file.
Parameters
hHandle for communication with TROPIC01
stpubSTPUB from device's certificate
pkey_indexIndex of pairing public key
shiprivSecure host private key
shipubSecure host public key
host_eph_keysHost MCU ephemeral keys, must be filled by lt_out__session_start() and used to finish secure session establishment.
Returns
LT_OK if success, otherwise returns other error code.