mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
check for sessionPassphraseCached
This commit is contained in:
parent
f557e6149d
commit
ed76d030ef
@ -265,7 +265,7 @@ bool storage_getRootNode(HDNode *node)
|
|||||||
if (hdnode_from_xprv(storage.node.depth, storage.node.fingerprint, storage.node.child_num, storage.node.chain_code.bytes, storage.node.private_key.bytes, &sessionRootNode) == 0) {
|
if (hdnode_from_xprv(storage.node.depth, storage.node.fingerprint, storage.node.child_num, storage.node.chain_code.bytes, storage.node.private_key.bytes, &sessionRootNode) == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (storage.has_passphrase_protection && storage.passphrase_protection && strlen(sessionPassphrase)) {
|
if (storage.has_passphrase_protection && storage.passphrase_protection && sessionPassphraseCached && strlen(sessionPassphrase) > 0) {
|
||||||
// decrypt hd node
|
// decrypt hd node
|
||||||
uint8_t secret[64];
|
uint8_t secret[64];
|
||||||
uint8_t salt[12];
|
uint8_t salt[12];
|
||||||
|
Loading…
Reference in New Issue
Block a user