1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

core/cache: fix setting of None passphrase

This commit is contained in:
Pavol Rusnak 2019-05-13 16:53:41 +02:00
parent 35945239eb
commit 00564f4a1c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -53,7 +53,7 @@ def set_seed(seed):
def set_passphrase(passphrase):
global _cached_passphrase, _cached_passphrase_fprint
_cached_passphrase = passphrase
_cached_passphrase_fprint = _compute_state(b"FPRINT", passphrase)[:4]
_cached_passphrase_fprint = _compute_state(b"FPRINT", passphrase or "")[:4]
def clear(skip_passphrase: bool = False):