libtropic
C library for TROPIC01 chip

◆ lt_ecc_key_generate()

lt_ret_t lt_ecc_key_generate ( lt_handle_t h,
const ecc_slot_t  slot,
const lt_ecc_curve_type_t  curve 
)
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
Returns
LT_OK if success, otherwise returns other error code.