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

◆ lt_session_start()

lt_ret_t lt_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 
)
Note
To successfully estabilish Secure Session, you need to know Tropic01's X25519 public key. (STPUB). The STPUB can be obtained using lt_get_st_pub, or you can use lt_verify_chip_and_start_secure_session helper function, which will obtain the STPUB automatically and set up the Secure Session for you.
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
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value