1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00
Commit Graph

13527 Commits

Author SHA1 Message Date
M1nd3r
f54ec101bc refactor(core): change 65535 to 0xFFFF for better readability
[no changelog]
2024-08-15 16:11:03 +02:00
M1nd3r
43ed952900 refactor(trezorlib): extract protocol_v1 and protocol_v2
[no changelog]
2024-08-12 19:54:47 +02:00
M1nd3r
3cab8fbb79 feat(trezorlib): create transports with correct protocols
[no changelog]
2024-08-12 19:35:39 +02:00
M1nd3r
121ed1f530 refactor(trezorlib): decouple protocol from handler
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
ef33422ab3 tests(core): add thp cache tests, clean thp tests, add message to set_bool assertion error
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
dddf926442 fix(core): clear channels when calling cache_thp.clear_all
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
a465cfeaa8 feat(core): add SilentError and suppres message response on Cancel from Host in pairing phase when waiting for user interaction
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
92b1a59b07 test(core): unify usage of thp_common in tests
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
9e3278c177 test(core): fix all THP tests, unify usage of mock interface
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
72166caf6c refactor(core): clean unnecessary debug-only code in interface manager
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
eae3ff7d50 refactor(core): rename channel creating function
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
e928fdbe22 test(core): improve thp tests
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
e1a0e8db2c fix(core): fix logging in thp.crypto.py
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
ea0d143a76 test(core): fix test for non-THP builds, remove unnecessary imports
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
e10753a187 test(core): remove unnecessary code in thp tests
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
cae780b401 feat(core): raise InvalidSessionError when active session is None in old codec when accessed from context
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
c9e3ed2bb6 chore(core): improve logging in thp files
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
5f887f4457 test(core): fix THP tests failing on non-THP builds
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
65a295425b test(core): fix broken thp tests
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
4d5c353d8b REMOVE AFTER TESTING - removed config.py in boot.py 2024-08-12 12:14:24 +02:00
M1nd3r
7e18254a3c fix(core): displayed pairing code will always have 6-digits (added leading zeroes)
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
f7b0a03459 fix(core): fix pairing layout when only QR code or only Code Entry is selected
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
164dc3dede style(core): change log message in load_cached_sessions
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
da52023194 feat(core): add check to derive_and_store_roots btc_only variant
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
c10c0cca60 chore(core): replace prints in channel.py with log.debug
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
1106f0ba10 chore(core): add logging of channel_id to channel.py logs
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
92e605dbc2 chore(core): add logging of buffer to wrap_protobuf_load
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
2b8a669619 feat(core): make loading sessions from cache faster
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
e67781114c refactor(core): remove unnecessary mentions of version of the THP
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
779e5d1a60 feat(core): change THP version from 3 to 2
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
b1b948c14b fix(core): fix handling of codec_v1 messages 2024-08-12 12:14:24 +02:00
M1nd3r
5cde36050b feat(core): add ThpInvalidDataError
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
894c9989e6 fix: fix thp on btc_only fw
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
883af07454 fix(core): remove handshake hash from auth_data in transport noise messages
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
ba86f58050 fix(core): change one more byte in CPace padding
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
42d52633d0 feat(core): update generation of the CPace pregenerator (edit padding, add one zero byte after handshake hash)
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
878d03f236 feat(core): add verification of selected pairing methods, add NoMethod pairing for usb interface
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
5727c7e319 chore(core): add exceptions to getters for QR code string, code code string and handshake hash, remove unnecessary booleans from PairingDisplayData
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
fa8ff7351a test(core): remove dummy test from test_trezor.wire.thp
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
c31ed2d7b5 fix(core): change PROTOCOL_NAME in thp encryption
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
7c2b2d550f fix(core): fix RSODs on firmware builds, fix indentation in aesgcm documentation
[no changelog]
2024-08-12 12:14:24 +02:00
M1nd3r
0b80fabb37 refactor(core): clear channel after decryption failed error 2024-08-12 12:14:24 +02:00
M1nd3r
e6967e431e feat(core): add updates of the "last used" for channels and sessions 2024-08-12 12:14:24 +02:00
M1nd3r
9569f2b7e9 refactor(core): remove unreachable code in thp cache 2024-08-12 12:14:24 +02:00
M1nd3r
1c40551ef4 refactor(core): remove unnecessary warning suppression in cache thp 2024-08-12 12:14:24 +02:00
M1nd3r
040dd102f2 refactor(core): remove unused code in thp cache 2024-08-12 12:14:24 +02:00
M1nd3r
ac4ede584e fix(core): remove redundant call of initialize in protocol cache 2024-08-12 12:14:24 +02:00
M1nd3r
a5fd09d230 chore(core): improve logging of "write message" 2024-08-12 12:14:24 +02:00
M1nd3r
ab0f89ee18 feat(core): randomize pairing secret 2024-08-12 12:14:24 +02:00
M1nd3r
ec956e0589 feat(core): remove hardcoded trezor key from cpace 2024-08-12 12:14:24 +02:00