libtropic
C library for TROPIC01 chip

◆ lt_ecc_key_read()

lt_ret_t lt_ecc_key_read ( lt_handle_t h,
const ecc_slot_t  ecc_slot,
uint8_t *  key,
lt_ecc_curve_type_t curve,
ecc_key_origin_t origin 
)
Parameters
hDevice's handle
ecc_slotSlot number ECC_SLOT_0 - ECC_SLOT_31
keyBuffer for retrieving a key; length depends on the type of key in the slot (32B for Ed25519, 64B for P256), according to curve
curveWill be filled by curve byte
originWill be filled by origin byte
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value