1
0
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:
Andrew Kozlik 2023-02-02 11:41:03 +01:00
parent 2f03ace311
commit 8c22fa8d78
6 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"name": "Apple",
"webauthn": ["apple.com"],
"use_self_attestation": false
}

BIN
common/defs/fido/apple.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -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(

Binary file not shown.

File diff suppressed because one or more lines are too long