File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 36
36
37
37
// Change this ONLY via keystore_unlock() or keystore_lock()
38
38
static bool _is_unlocked_device = false;
39
+ // Stores a random key after unlock which, after stretching, is used to encrypt the retained seed.
39
40
static uint8_t _unstretched_retained_seed_encryption_key [32 ] = {0 };
40
41
// Must be defined if is_unlocked is true. ONLY ACCESS THIS WITH keystore_copy_seed().
42
+ // Stores the encrypted seed after unlock.
41
43
static uint8_t _retained_seed_encrypted [KEYSTORE_MAX_SEED_LENGTH + 64 ] = {0 };
42
44
static size_t _retained_seed_encrypted_len = 0 ;
43
45
44
46
// Change this ONLY via keystore_unlock_bip39().
45
47
static bool _is_unlocked_bip39 = false;
48
+ // Stores a random keyy after bip39-unlock which, after stretching, is used to encrypt the retained
49
+ // bip39 seed.
46
50
static uint8_t _unstretched_retained_bip39_seed_encryption_key [32 ] = {0 };
47
51
// Must be defined if _is_unlocked is true. ONLY ACCESS THIS WITH _copy_bip39_seed().
52
+ // Stores the encrypted BIP-39 seed after bip39-unlock.
48
53
static uint8_t _retained_bip39_seed_encrypted [64 + 64 ] = {0 };
49
54
static size_t _retained_bip39_seed_encrypted_len = 0 ;
50
55
You can’t perform that action at this time.
0 commit comments