libtropic
C library for TROPIC01 chip

◆ lt_ret_t

enum lt_ret_t
Enumerator
LT_OK 

Operation was successful.

LT_FAIL 

Operation was not succesfull.

LT_PARAM_ERR 

Some parameter was not accepted by function.

LT_CRYPTO_ERR 

Error detected during cryptographic operation.

LT_L1_SPI_ERROR 

Spi transfer returned error.

LT_L1_DATA_LEN_ERROR 

Data does not have an expected length.

LT_L1_CHIP_STARTUP_MODE 

Chip is in STARTUP mode.

LT_L1_CHIP_ALARM_MODE 

Chip is in ALARM mode.

LT_L1_CHIP_BUSY 

Chip is BUSY - typically chip is still booting.

LT_L1_INT_TIMEOUT 

Interrupt pin did not fire as expected.

LT_L3_R_MEM_DATA_WRITE_WRITE_FAIL 

L3 result [API r_mem_data_write]: write failed, because slot is already written in.

Return values based on RESULT field

LT_L3_R_MEM_DATA_WRITE_SLOT_EXPIRED 

L3 result [API r_mem_data_write]: writing operation limit is reached for a given slot.

LT_L3_ECC_INVALID_KEY 

L3 result [API EDDSA_sign, ECDSA_sign, ecc_key_read]: The key in the requested slot does not exist, or is invalid.

LT_L3_MCOUNTER_UPDATE_UPDATE_ERR 

L3 result [API mcounter_update]: Failure to update the specified Monotonic Counter. The Monotonic Counter is already at 0.

LT_L3_COUNTER_INVALID 

L3 result [API mcounter_update, mcounter_get]: The Monotonic Counter detects an attack and is locked. The counter must be reinitialized.

LT_L3_PAIRING_KEY_EMPTY 

L3 result [API pairing_key_read], The Pairing key slot is in "Blank" state. A Pairing Key has not been written to it yet.

LT_L3_PAIRING_KEY_INVALID 

L3 result [API pairing_key_read], The Pairing key slot is in "Invalidated" state. The Pairing key has been invalidated.

LT_L3_OK 

L3 command was received correctly.

LT_L3_FAIL 

L3 command was not received correctly.

LT_L3_UNAUTHORIZED 

Current pairing keys are not authorized for execution of the last command.

LT_L3_INVALID_CMD 

Received L3 command is invalid.

LT_L3_DATA_LEN_ERROR 

L3 data does not have an expected length.

LT_L2_IN_CRC_ERR 

l2 response frame contains CRC error

Return values based on STATUS field

LT_L2_REQ_CONT 

There is more than one chunk to be expected for a current request.

LT_L2_RES_CONT 

There is more than one chunk to be received for a current response.

LT_L2_HSK_ERR 

There were an error during handshake establishing.

LT_L2_NO_SESSION 

There is no secure session.

LT_L2_TAG_ERR 

There were error during checking message authenticity.

LT_L2_CRC_ERR 

l2 request contained crc error

LT_L2_GEN_ERR 

There were some other error.

LT_L2_NO_RESP 

Chip has no response to be transmitted.

LT_L2_UNKNOWN_REQ 

ID of last request is not known to TROPIC01.

LT_L2_STATUS_NOT_RECOGNIZED 

Returned status byte is not recognized at all.

LT_L2_DATA_LEN_ERROR 

L2 data does not have an expected length.

LT_CERT_STORE_INVALID 

Certificate store related errors Certificate store likely does not contain valid data

LT_CERT_UNSUPPORTED 

Certificate store contains ASN1-DER syntax that is beyond the supported subset

LT_CERT_ITEM_NOT_FOUND 

Certificate does not contain requested item