1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 16:18:22 +00:00

mako: improve local variable name

This commit is contained in:
matejcik 2019-12-09 12:59:37 +01:00 committed by matejcik
parent 12fb69d789
commit ac6e23fb87
2 changed files with 4 additions and 4 deletions

View File

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

View File

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