libtropic
C library for TROPIC01 chip

◆ lt_in__ecc_key_read()

lt_ret_t lt_in__ecc_key_read ( lt_handle_t h,
uint8_t *  key,
lt_ecc_curve_type_t curve,
ecc_key_origin_t origin 
)
Note
Used for separate L3 communication, for more information read info at the top of this file.
Parameters
hDevice's handle
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 type
originWill be filled by origin type
Returns
LT_OK if success, otherwise returns other error code.