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

◆ lt_verify_chip_and_start_secure_session()

lt_ret_t lt_verify_chip_and_start_secure_session ( lt_handle_t h,
const uint8_t *  shipriv,
const uint8_t *  shipub,
const lt_pkey_index_t  pkey_index 
)
Warning
This function currently DOES NOT validate/verify the whole certificate chain, it just parses out STPUB from the device's certificate, because STPUB is used for handshake.

To verify the whole certificate chain we recommend to download all certificates from chip by using lt_get_info_cert_store() and use any apropriate third party tool to verify validity of certificate chain.

Parameters
hHandle for communication with TROPIC01
shiprivHost's private pairing key for the slot pkey_index
shipubHost's public pairing key for the slot pkey_index
pkey_indexPairing key index
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value