Libtropic API
SDK for the TROPIC01 secure element
Version: v4.0.0
Loading...
Searching...
No Matches

◆ lt_pairing_key_write()

lt_ret_t lt_pairing_key_write ( lt_handle_t h,
const uint8_t *  pairing_pub,
const lt_pkey_index_t  slot 
)
Warning
The pairing keys reside in I-Memory, which has narrower operating temperature range (-20 °C to 85 °C) than the rest of TROPIC01. New CPU firmware versions (v2.0.0 and newer) return error when the operation is unsuccessful, but with older firmwares the operation fails silently. If you use CPU firmware older than v2.0.0, make sure to manually check whether the pairing key was correctly written if operating outside this range. Refer to datasheet for absolute maximum ratings.
Parameters
hHandle for communication with TROPIC01
pairing_pub32B of pubkey
slotPairing key slot 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