libtropic
C library for TROPIC01 chip

◆ lt_ecc_key_store()

lt_ret_t lt_ecc_key_store ( lt_handle_t h,
const ecc_slot_t  slot,
const lt_ecc_curve_type_t  curve,
const uint8_t *  key 
)
Parameters
hDevice's handle
slotSlot number ecc_slot_t
curveType of ECC curve. Use L3_ECC_KEY_GENERATE_CURVE_ED25519 or L3_ECC_KEY_GENERATE_CURVE_P256
keyKey to store
Returns
LT_OK if success, otherwise returns other error code.