mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 10:58:21 +00:00
mako: improve local variable name
This commit is contained in:
parent
12fb69d789
commit
ac6e23fb87
@ -21,8 +21,8 @@ from hashlib import sha256
|
||||
|
||||
fido_entries = []
|
||||
for app in fido:
|
||||
for u2f in app.u2f:
|
||||
fido_entries.append((bytes.fromhex(u2f), "U2F", app))
|
||||
for app_id in app.u2f:
|
||||
fido_entries.append((bytes.fromhex(app_id), "U2F", app))
|
||||
for origin in app.webauthn:
|
||||
rp_id_hash = sha256(origin.encode()).digest()
|
||||
fido_entries.append((rp_id_hash, "WebAuthn", app))
|
||||
|
@ -20,8 +20,8 @@ def c_bytes(rp_id_hash):
|
||||
|
||||
fido_entries = []
|
||||
for app in fido:
|
||||
for u2f in app.u2f:
|
||||
fido_entries.append((bytes.fromhex(u2f), "U2F", "", app))
|
||||
for app_id in app.u2f:
|
||||
fido_entries.append((bytes.fromhex(app_id), "U2F", "", app))
|
||||
for origin in app.webauthn:
|
||||
rp_id_hash = sha256(origin.encode()).digest()
|
||||
origin_str = " ({})".format(origin)
|
||||
|
Loading…
Reference in New Issue
Block a user