1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 02:58:57 +00:00
Commit Graph

13011 Commits

Author SHA1 Message Date
M1nd3r
58b9060ec6 feat(core): adjust control bytes 2024-04-29 12:18:41 +02:00
M1nd3r
6b0c0accd7 feat(core): improve thp protobuf 2024-04-29 12:17:39 +02:00
M1nd3r
2637ce299d feat(core): work on pairing, updated protobuf
note: crashes during build
2024-04-29 12:17:09 +02:00
M1nd3r
30fd1fe5c3 fix(core): partial fix for bug in session creation response
note: fails GL checks
2024-04-29 12:16:29 +02:00
M1nd3r
0c156c94a0 fix(core): fix order of checks in channel.py 2024-04-29 12:16:13 +02:00
M1nd3r
2c97edb183 fix(core): fix loading of sessions from cache, improve logging
Improve logging of expected message type in session context
2024-04-29 12:16:13 +02:00
M1nd3r
6c762c50bc feat(core): add new Failure types for legacy builds 2024-04-29 12:16:13 +02:00
M1nd3r
09164a3563 fix(core): fix cyclic import of constants 2024-04-29 12:16:13 +02:00
M1nd3r
31ad84133c refactor(core): extract duplicated write_to_wire 2024-04-29 12:16:13 +02:00
M1nd3r
360d3afa23 refactor(core): remove unused code 2024-04-29 12:16:13 +02:00
M1nd3r
b262a59d9b feat(core): add sending of unallocated session error message, debug log improvements 2024-04-29 12:16:13 +02:00
M1nd3r
07c935f989 feat(core): allow to encode protobuf into memoryview buffer 2024-04-29 12:16:13 +02:00
M1nd3r
aca9fe5905 feat(core): add ThpUnallocatedChannel and ThpUnallocatedSession Failure types 2024-04-29 12:16:13 +02:00
M1nd3r
eb203faed1 fix(core): remove unnecessary session_ids in old Codec, fix storage test, suppress invalid warnings 2024-04-29 12:16:13 +02:00
M1nd3r
5cd2fe938a chore(core): Add build_unix_frozen_debug config to makefile 2024-04-29 12:16:13 +02:00
M1nd3r
c0e8342272 feat(core): expect channel messages with noise tag 2024-04-29 12:16:13 +02:00
M1nd3r
5306a8b55e chore(core): improve logging of channel state, reduce logging of sessions 2024-04-29 11:25:53 +02:00
M1nd3r
7963cb12c3 feat(core): create pairing state if branch 2024-04-29 11:11:56 +02:00
M1nd3r
707361fccb fix(core): add default value to channel.waiting_for_ack_timeout 2024-04-29 11:11:18 +02:00
M1nd3r
5187869f3b fix(core): fix old codec write, enhance new session response message 2024-04-29 11:08:00 +02:00
M1nd3r
f60c263fb1 chore(core): improve debug log of sync bits 2024-04-29 11:07:43 +02:00
M1nd3r
8c543f61be refactor(core): remove unnecessary protocol abstraction 2024-04-29 11:07:14 +02:00
M1nd3r
739c4180da refactor(core): remove unnecessary channel state 2024-04-29 11:07:05 +02:00
M1nd3r
30da02b0f2 fix(core): fix continuation packet ignoring, unify logging 2024-04-29 11:06:37 +02:00
M1nd3r
f31d8f59ce fix(core): remove redundant ack 2024-04-29 11:06:25 +02:00
M1nd3r
504a3bfe98 fix(core): fix debug log, crashing and mock noise tags 2024-04-29 11:06:06 +02:00
M1nd3r
8d346120f4 feat(core): change channel allocation response control byte to 0x41 and error control byte to 0x42 2024-04-29 11:05:45 +02:00
M1nd3r
775ad59630 feat(core): create new session response 2024-04-29 11:05:25 +02:00
M1nd3r
e7f5f3d3f2 refactor(core): refactor channel 2024-04-29 11:05:13 +02:00
M1nd3r
3f590bc11d refactor(core): clean thp code 2024-04-29 11:04:44 +02:00
M1nd3r
209e548ab5 chore(core): fix debug message 2024-04-29 11:04:17 +02:00
M1nd3r
aa2115542b fix(core): fix synchronization 2024-04-29 11:03:51 +02:00
M1nd3r
e55e9a4e15 chore(core): update legacy protobuf makefile to ignore Thp messages 2024-04-29 11:02:39 +02:00
M1nd3r
8c4460301b feat(core): add messages-thp.proto symbolic link 2024-04-29 10:39:56 +02:00
M1nd3r
d89b201a7e fix(core): fix retransmission, adjust debug prints 2024-04-29 10:39:50 +02:00
M1nd3r
555708493b feat(core): implement SessionContext write 2024-04-29 10:34:59 +02:00
M1nd3r
6ab6d2c109 refactor(core): denote to-be-replaced functions as deprecated 2024-04-29 10:34:59 +02:00
M1nd3r
3aa5b88a0d feat(core): implement SessionContext 2024-04-29 10:34:59 +02:00
M1nd3r
5bdd2e7fa5 fix(core): resolve issues with checks 2024-04-27 02:51:45 +02:00
M1nd3r
a245ef195e feat(core): session creation, part 2 2024-04-27 02:46:45 +02:00
M1nd3r
912c85e21e fix(core): fix handshake reading, session creation part 1 2024-04-27 02:45:48 +02:00
M1nd3r
37547b19da fix(core): fix use of buffers 2024-04-27 02:45:26 +02:00
M1nd3r
6f3db981ec refactor(core): remove unused handlers, clean ChannelContext 2024-04-27 02:44:51 +02:00
M1nd3r
7c447ac5d1 feat(core): improve channels, sessions and handshake 2024-04-27 02:36:34 +02:00
M1nd3r
42873b1c30 refactor(core): change structure of channels and sessions 2024-04-27 02:36:34 +02:00
M1nd3r
f75ee29ffa feat(core): make changes to thp cache, part 1 2024-04-27 02:36:10 +02:00
M1nd3r
fb99d1dbe6 feat(core): remove message type from device properties message 2024-04-27 02:08:59 +02:00
M1nd3r
ef1b429c62 feat(core): add packet handlers 2024-04-27 02:08:59 +02:00
M1nd3r
4f9b3944ab feat(core): add thp module to frozen build 2024-04-27 01:55:09 +02:00
M1nd3r
45b0293371 fix(core): fix bugs in thp unittests 2024-04-27 01:55:09 +02:00