mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-05 14:22:33 +00:00
feat(common): Add Apple to known FIDO services.
This commit is contained in:
parent
2f03ace311
commit
8c22fa8d78
5
common/defs/fido/apple.json
Normal file
5
common/defs/fido/apple.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Apple",
|
||||
"webauthn": ["apple.com"],
|
||||
"use_self_attestation": false
|
||||
}
|
BIN
common/defs/fido/apple.png
Normal file
BIN
common/defs/fido/apple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
core/embed/rust/src/ui/model_tt/res/fido/icon_apple.toif
Normal file
BIN
core/embed/rust/src/ui/model_tt/res/fido/icon_apple.toif
Normal file
Binary file not shown.
@ -19,6 +19,14 @@ class FIDOApp:
|
||||
|
||||
# fmt: off
|
||||
def by_rp_id_hash(rp_id_hash: bytes) -> FIDOApp | None:
|
||||
if rp_id_hash == b"\x22\x65\xcb\xcc\x3e\xf2\x41\x06\xc9\xe0\xed\xdb\xd0\x4f\x3c\xca\x0d\x03\x22\x5d\xa3\xfc\xca\x8e\x2d\x86\xf7\xa3\x94\xaf\x92\x83":
|
||||
# WebAuthn key for Apple
|
||||
return FIDOApp(
|
||||
label="apple.com",
|
||||
icon="apps/webauthn/res/icon_apple.toif",
|
||||
use_sign_count=None,
|
||||
use_self_attestation=False,
|
||||
)
|
||||
if rp_id_hash == b"\x96\x89\x78\xa2\x99\x53\xde\x52\xd3\xef\x0f\x0c\x71\xb7\xb7\xb6\xb1\xaf\x9f\x08\xe2\x57\x89\x6a\x8d\x81\x26\x91\x85\x30\x29\x3b":
|
||||
# U2F key for Amazon Web Services
|
||||
return FIDOApp(
|
||||
|
BIN
core/src/apps/webauthn/res/icon_apple.toif
Normal file
BIN
core/src/apps/webauthn/res/icon_apple.toif
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user