Skip to content

Commit 73f2e6e

Browse files
committed
chore(core): update libtropic to current master
[no changelog]
1 parent 1ec7e12 commit 73f2e6e

File tree

7 files changed

+9
-5
lines changed

7 files changed

+9
-5
lines changed

core/embed/projects/prodtest/cmd/prodtest_tropic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ static void prodtest_tropic_get_chip_id(cli_t* cli) {
8787

8888
lt_handle_t* handle = tropic_get_handle();
8989

90-
uint8_t chip_id[LT_L2_GET_INFO_CHIP_ID_SIZE];
91-
if (!lt_get_info_chip_id(handle, chip_id, sizeof(chip_id))) {
90+
struct lt_chip_id_t chip_id;
91+
if (!lt_get_info_chip_id(handle, &chip_id)) {
9292
cli_error(cli, CLI_ERROR, "Unable to get CHIP ID");
9393
}
9494

core/embed/sec/tropic/stm32/tropic01.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ lt_ret_t lt_port_spi_transfer(lt_handle_t *h, uint8_t offset, uint16_t tx_len,
166166
if (offset + tx_len > LT_L1_LEN_MAX) {
167167
return LT_L1_DATA_LEN_ERROR;
168168
}
169-
int ret = HAL_SPI_TransmitReceive(&drv->spi, h->l2_buff + offset,
170-
h->l2_buff + offset, tx_len, timeout);
169+
int ret = HAL_SPI_TransmitReceive(&drv->spi, h->l2.buff + offset,
170+
h->l2.buff + offset, tx_len, timeout);
171171
if (ret != HAL_OK) {
172172
return LT_FAIL;
173173
}

core/site_scons/models/T3W1/emulator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def configure(
7474
"vendor/libtropic/src/lt_l2.c",
7575
"vendor/libtropic/src/lt_l2_frame_check.c",
7676
"vendor/libtropic/src/lt_l3.c",
77+
"vendor/libtropic/src/lt_l3_process.c",
7778
"vendor/libtropic/src/lt_random.c",
7879
"vendor/libtropic/hal/port/unix/lt_port_unix_tcp.c",
7980
"vendor/libtropic/hal/crypto/trezor_crypto/lt_crypto_trezor_aesgcm.c",

core/site_scons/models/T3W1/trezor_t3w1_revA.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def configure(
192192
sources += ["vendor/libtropic/src/lt_l2.c"]
193193
sources += ["vendor/libtropic/src/lt_l2_frame_check.c"]
194194
sources += ["vendor/libtropic/src/lt_l3.c"]
195+
sources += ["vendor/libtropic/src/lt_l3_process.c"]
195196
sources += ["vendor/libtropic/src/lt_hkdf.c"]
196197
sources += ["vendor/libtropic/src/lt_random.c"]
197198
sources += [

core/site_scons/models/T3W1/trezor_t3w1_revB.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def configure(
193193
sources += ["vendor/libtropic/src/lt_l2.c"]
194194
sources += ["vendor/libtropic/src/lt_l2_frame_check.c"]
195195
sources += ["vendor/libtropic/src/lt_l3.c"]
196+
sources += ["vendor/libtropic/src/lt_l3_process.c"]
196197
sources += ["vendor/libtropic/src/lt_hkdf.c"]
197198
sources += ["vendor/libtropic/src/lt_random.c"]
198199
sources += [

core/site_scons/models/T3W1/trezor_t3w1_revC.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def configure(
192192
sources += ["vendor/libtropic/src/lt_l2.c"]
193193
sources += ["vendor/libtropic/src/lt_l2_frame_check.c"]
194194
sources += ["vendor/libtropic/src/lt_l3.c"]
195+
sources += ["vendor/libtropic/src/lt_l3_process.c"]
195196
sources += ["vendor/libtropic/src/lt_hkdf.c"]
196197
sources += ["vendor/libtropic/src/lt_random.c"]
197198
sources += [

vendor/libtropic

Submodule libtropic updated 196 files

0 commit comments

Comments
 (0)