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

◆ lt_mac_and_destroy()

lt_ret_t lt_mac_and_destroy ( lt_handle_t h,
const lt_mac_and_destroy_slot_t  slot,
const uint8_t *  data_out,
uint8_t *  data_in 
)

This command is just a part of MAC And Destroy sequence, which takes place between the host and TROPIC01. Example code can be found in examples/lt_ex_macandd.c, for more info about Mac And Destroy functionality, read the Application note.

Parameters
hHandle for communication with TROPIC01
slotMac-and-Destroy slot index, valid values are 0-127
data_outData to be sent from host to TROPIC01
data_inData returned from TROPIC01 to host
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value