1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 12:08:59 +00:00
Commit Graph

160 Commits

Author SHA1 Message Date
naiyoma
9f9354a820 [no changelog] Refactor arithmetic operations in fido2.py to use utime.ticks_add() and utime.ticks_diff() 2024-03-18 11:59:32 +01:00
grdddj
b8ea21d24a feat(all): implement translations into Trezor
Co-authored-by matejcik <ja@matejcik.cz>
2024-02-12 14:49:32 +01:00
matejcik
edc2add85e style(core): apply isort 5
[no changelog]
2023-08-16 13:29:51 +02:00
grdddj
8d78dd8872 chore(core): change some UI text and TR's screens to match the Figma designs
[no changelog]
2023-08-07 15:30:38 +02:00
matejcik
8c5c2f4204 refactor(core): get rid of passing Context around 2023-07-12 10:09:36 +02:00
grdddj
393bc48b6b fix(core): improve error popups 2023-05-11 21:02:21 +02:00
tychovrahe
4175b817e1 chore(core): remove remaining toif files from micropython code
[no changelog]
2023-04-28 15:09:53 +02:00
Andrew Kozlik
4cd88e16f7 feat(core): Introduce use_compact option for FIDO2.
When use_compact is set to true, Trezor creates smaller credential IDs.
2023-04-05 15:49:27 +02:00
Andrew Kozlik
32dec18366 feat(core): Don't store blank names in FIDO2 credentials. 2023-04-05 15:49:27 +02:00
Andrew Kozlik
edeccde9f3 fix(core): Show app icon in Fido2ConfirmNoCredentials.
[no changelog]
2023-03-09 14:51:22 +01:00
Andrew Kozlik
9528e2f9eb feat(common): Add Apple to known FIDO services. 2023-02-28 10:54:48 +01:00
Andrew Kozlik
00dde0e312 feat(core): Handle .dummy RP ID in Chrome FIDO2. 2023-02-23 13:02:33 +01:00
Andrew Kozlik
2ee5b0aa15 fix(core): Fix FIDO2 falling back to U2F.
[no changelog]
2023-02-23 13:02:33 +01:00
Andrew Kozlik
deb38a2db5 feat(core): Ignore channel ID in U2F.
Safari browser changes the CID for every single operation. We need to
keep up the same U2F dialog for different CIDs as long as the dialog
corresponds to the same request data.
2023-02-23 13:02:33 +01:00
Andrew Kozlik
0a955b4ad6 feat(core): Force basic attestation in FIDO2 for google.com. 2023-02-17 16:00:41 +01:00
grdddj
996fec5aae chore(core): delete newlines in strings where they do not delimit useful info
Done so we can use the same strings for both TT and TR

[no changelog]
2023-02-07 12:26:33 +01:00
grdddj
61277bd80a feat(core/ui): implement webauthn layouts for UI2
[no changelog]
2022-11-24 13:03:34 +01:00
grdddj
ae525fed26 chore(core/ui): delete unused arguments to layouts 2022-11-21 14:08:47 +01:00
grdddj
0c3423b1c7 chore(core): decrease webauthn size by 1270 bytes 2022-11-10 14:08:28 +01:00
grdddj
f25119e44d chore(core): import trezor.messages in TYPE_CHECKING branch - saving 1kb 2022-11-10 14:08:28 +01:00
Pavol Rusnak
029e47e1e8 chore(common/defs/fido): add proton
[no changelog]
2022-10-17 12:02:54 +02:00
Vladyslav Burzakovskyy
e7ff43272c chore(common/defs/fido): add invity
[no changelog]
2022-10-14 16:28:51 +02:00
tychovrahe
fb08536b6a feat(core): icon and images using new format 2022-09-29 21:50:10 +02:00
mcudev
1ec62e9c86 common/defs/fido: update fastmail 2022-06-27 11:09:31 +02:00
mcudev
7d37109eb8 common/defs/fido: add cloudflare 2022-06-14 15:12:51 +02:00
Pavol Rusnak
59f78d06b1 chore(common/defs/fido): add kraken
[no changelog]
2022-06-01 14:52:15 +02:00
grdddj
14a0bc13ce chore(docs): mention that .mako files are rendered by make templates
[no changelog]
2022-05-19 14:09:16 +02:00
Martin Milata
2f987c3c5e refactor(core/ui): remove dependencies on old layouts
[no changelog]
2022-04-07 17:58:41 +02:00
matejcik
dec89ea59e refactor(core): convert if/elif chains to if-chains
This way AST parsers won't get stack exceeded (because an elif counts as
an else { if {}} to an AST parser apparently?) and so automated tools
will like tokens.py and friends.
2022-01-07 21:41:17 +01:00
grdddj
9fc5bb546b style(core): full pyright-based type-checking
Changes many fields to required -- as far as we were able to figure out,
signing would fail if these fields aren't provided anyway, so this
should not pose a compatibility problem.

Co-authored-by: matejcik <ja@matejcik.cz>
2022-01-07 21:41:17 +01:00
matejcik
bc75d05772 chore(common/defs/fido): add coinbase u2f
[no changelog]
2021-11-08 15:55:01 +01:00
matejcik
e972839ac7 style(all): fix pylint complaints
[no changelog]
2021-10-27 13:13:15 +02:00
amadejpapez
85ba7c12ba style(all): use f-strings for formatting
[no changelog]
2021-10-13 11:53:17 +02:00
Martin Milata
2a91052b02 refactor(core/ui): move altcoin and webauthn layouts to separate file
Also fix types.
2021-08-04 15:03:11 +02:00
Martin Milata
574dcbc8a3 refactor(core): convert apps.common to layouts 2021-08-04 15:03:11 +02:00
Martin Milata
875cc0cb1a refactor(core): convert apps.webauthn to layouts 2021-08-04 15:03:11 +02:00
Andrew Kozlik
97ca1e3341 chore(core): Add offset parameter to cbor.decode(). 2021-07-22 10:54:49 +02:00
Andrew Kozlik
7277a49047 fix(common): Add new rpId to Binance's FIDO definition. 2021-07-21 13:19:16 +02:00
Pavol Rusnak
8cfa5da1ce
docs: fix typos in comments
[skip_ci]
2021-06-30 15:41:55 +02:00
Jan Pochyla
a8623c4b59 refactor(core): fix imports and use new protobuf API in apps 2021-06-08 09:55:19 +02:00
Pavol Rusnak
155fc7ac67
fix(core): remove tcDisplay from metadata/trezor-ctap2.json 2021-05-19 14:49:54 +02:00
Pavol Rusnak
d358503676
fix(core): remove txAuthSimple from metadata/trezor-ctap2.json 2021-05-19 14:45:02 +02:00
matejcik
b1e4246b46 refactor(core/webauthn): make sure KEY_AGREEMENT_*KEY is generated once per power-up
This is what the spec recommends and it has been the case before
workflow-restarts, when `apps.webauthn.fido2` was imported exactly once
per lifetime.

With workflow-restarts, `fido2` is being imported repeatedly and the
keys regenerated. This does not seem to be a problem per the spec -- a
FIDO workflow will retain the same keys, and non-FIDO workflows can be
seen as unplugs/replugs as far as the FIDO functionality is concerned.

However, regenerating the keys is slow, which is a problem for the
hardware-based unit tests. We can avoid the slowness by returning to the
spec-mandated behavior and generating once per power-up.
2021-05-06 13:14:21 +02:00
matejcik
e629a72c3a refactor(core): move app registrations to a single handler function
apps.webauthn.boot() does not need an if-condition because it's only
called from session.py when the usb interface is enabled

This means that they do not need to be stored in RAM at all. The obvious
drawback is that we need to hand-edit the if/elif sequence, but we don't
register new handlers all that often so 🤷
2021-05-06 13:14:21 +02:00
Martin Milata
ac711fb8ee style(core): use more recent type annotation syntax
https://www.python.org/dev/peps/pep-0585/ - Type Hinting Generics In Standard Collections
https://www.python.org/dev/peps/pep-0604/ - Allow writing union types as X | Y
2021-04-01 11:12:30 +02:00
Martin Milata
c0174ff217 refactor(core/ui): raise exception on dialog cancel by default 2021-03-30 22:34:01 +02:00
Martin Milata
01900b8536 refactor(core): convert parts of apps.webauthn to layouts 2021-03-30 22:34:01 +02:00
Pavol Rusnak
6c11bc60d7
common/defs/fido: add namecheap 2021-03-15 17:22:12 +01:00
Andrew Kozlik
850aa56691 docs(core): Add references to SLIPs in the code. 2021-03-09 20:01:59 +01:00
Martin Milata
f1382bf892 refactor(core): model-dependent UI component directories
They now live under trezor.ui.components.tt. Later
trezor.ui.components.t1 will be added and application code will be
rewritten to not use them directly in order to work on both TT and T1.
2021-02-10 13:57:19 +01:00