1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00
Commit Graph

13067 Commits

Author SHA1 Message Date
M1nd3r
2c08c088aa Add derive_cardano field to ThpCreateNewSession protobuf message 2024-04-17 14:40:42 +02:00
M1nd3r
11bbdc7cc7 Remove code duplication in pairing.py 2024-04-17 14:01:21 +02:00
M1nd3r
8fb45754c6 Remove unnecessary abstractions with handlers 2024-04-17 13:07:58 +02:00
M1nd3r
4777750b2f Improve pairing handling 2024-04-17 12:50:48 +02:00
M1nd3r
3fc3bbc756 Fix broken pairing workflow 2024-04-15 12:55:48 +02:00
M1nd3r
58df712f29 Fix handling of pairing request 2024-04-15 11:20:04 +02:00
M1nd3r
870f1a3b98 Change pairing process into a workflow 2024-04-12 18:42:35 +02:00
M1nd3r
72e482ee97 Add ThpPairingPreparationsFinished message 2024-04-12 17:16:10 +02:00
M1nd3r
0fdbc4ef49 Connect pairing handlers with appropriate messages 2024-04-12 17:16:10 +02:00
M1nd3r
190c584ef5 Fix handshake completion message decoding 2024-04-12 17:16:10 +02:00
M1nd3r
6af7ed4e55 Allow channel to handle only ThpCreateNewSession message 2024-04-12 17:16:10 +02:00
M1nd3r
6c6e699f51 Fix logging of passphrase 2024-04-12 17:16:10 +02:00
M1nd3r
ec53f32f07 Update protobuf messages continuity 2024-04-12 17:16:10 +02:00
M1nd3r
521107183e Redundant logging removal 2024-04-12 17:16:10 +02:00
M1nd3r
08c68b37e7 Implement Pairing flow 2024-04-12 17:16:10 +02:00
M1nd3r
7160f96eae Adjust loop clear 2024-04-12 17:16:10 +02:00
M1nd3r
0aaa255a0c Adjust imports 2024-04-12 17:16:10 +02:00
M1nd3r
8a6f74afc5 Clean session creation 2024-04-12 17:16:10 +02:00
M1nd3r
0da1571093 Adjust create session function params 2024-04-12 17:16:10 +02:00
M1nd3r
c3fa365263 Remove trailing whitespaces in messages.proto 2024-04-12 17:16:10 +02:00
M1nd3r
aeca56b30b Add pairing and channel EnumValueOptions to protobuf 2024-04-12 17:16:10 +02:00
M1nd3r
9b599b12a8 Fix common prebuild protobuf naming error 2024-04-12 17:16:10 +02:00
M1nd3r
4d617c5550 Adjust control bytes 2024-04-12 17:16:10 +02:00
M1nd3r
9122461fff Fix protobuf message wire types and pb2py error 2024-04-12 17:16:10 +02:00
M1nd3r
73c5a00aef Work on pairing, updated protobuf, note that it crashes during build 2024-04-12 17:16:10 +02:00
M1nd3r
6315f92bcd Partial fix for bug in session creation response, will fail checks 2024-04-12 17:16:10 +02:00
M1nd3r
f4e22908df Improve logging of expected message type in session context 2024-04-12 17:16:10 +02:00
M1nd3r
764b669e9a Fix order of checks 2024-04-12 17:16:10 +02:00
M1nd3r
8660d25d7f Fix loading of sessions from cache, improve logging 2024-04-12 17:16:10 +02:00
M1nd3r
3a1aa9eca2 Fix cyclic imports of constants 2024-04-12 17:16:10 +02:00
M1nd3r
3ce84559fd Add new Failure types to switch enumeration for legacy builds 2024-04-12 17:16:10 +02:00
M1nd3r
5c57329ca5 Extract duplicated write to wire 2024-04-12 17:16:10 +02:00
M1nd3r
90f908c542 Remove unused code 2024-04-12 17:16:10 +02:00
M1nd3r
0d6c0c9819 Unallocated session error, debug log improvements 2024-04-12 17:16:10 +02:00
M1nd3r
fc10a7bfc4 Warning suppression 2024-04-12 17:16:10 +02:00
M1nd3r
81659fb6bd Allow to encode protobuf into memoryview buffer 2024-04-12 17:16:10 +02:00
M1nd3r
5e09728fd7 Add ThpUnallocatedChannel and ThpUnallocatedSession Failure types 2024-04-12 17:16:10 +02:00
M1nd3r
d0a5b48f36 Remove unnecessary session_ids in old Codec, fix storage test, suppress invalid warnings 2024-04-12 17:16:10 +02:00
M1nd3r
1ed78fb95d Require noise tag with encrypted messages, improve debug logging 2024-04-12 17:16:10 +02:00
M1nd3r
c221256c29 Add build_unix_frozen_debug config to makefile 2024-04-12 17:16:10 +02:00
M1nd3r
e2c9c25de2 FIx style 2024-04-12 17:16:10 +02:00
M1nd3r
edc6d3723b Count with encryption tag for channel messages 2024-04-12 17:16:10 +02:00
M1nd3r
2907b749e0 Improve logging of channel state, reduce logging of sessions 2024-04-12 17:16:10 +02:00
M1nd3r
43187305a0 Add default value (None) to channel.waiting_for_ack_timeout, create pairing state if branch 2024-04-12 17:16:10 +02:00
M1nd3r
548d1b9a95 Fix old codec write, enhance new session response message 2024-04-12 17:16:10 +02:00
M1nd3r
0e99efc4b4 Improve debug log of sync bits 2024-04-12 17:16:10 +02:00
M1nd3r
c7f317d909 Remove unnecessary protocol abstraction 2024-04-12 17:16:10 +02:00
M1nd3r
99c04b5e83 Remove unnecessary channel state 2024-04-12 17:16:10 +02:00
M1nd3r
811baca0f2 Fix continuation packet ignoring, unify logging 2024-04-12 17:16:10 +02:00
M1nd3r
304c33955a Remove redundant ack 2024-04-12 17:16:10 +02:00