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

◆ lt_ecc_key_read()

lt_ret_t lt_ecc_key_read ( lt_handle_t h,
const lt_ecc_slot_t  ecc_slot,
uint8_t *  key,
const uint8_t  key_max_size,
lt_ecc_curve_type_t curve,
lt_ecc_key_origin_t origin 
)
Parameters
hHandle for communication with TROPIC01
ecc_slotSlot number TR01_ECC_SLOT_0 - TR01_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
key_max_sizeSize of the key buffer
curveWhen the function executes successfully, the type of elliptic curve public key will be written
originWhen the function executes successfully, the origin of the public key (generated/stored) will be written
Return values
LT_OKFunction executed successfully
otherFunction did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value