mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-26 13:52:21 +00:00
Sept: improve edge case cleanup a little.
This commit is contained in:
parent
1a63078c32
commit
771039e6a7
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ static void exfiltrate_keys_and_reboot_if_needed(void) {
|
|||
se_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state);
|
||||
se_set_in_context_save_mode(false);
|
||||
|
||||
/* Clear all keyslots. */
|
||||
for (size_t k = 0; k < 0x10; k++) {
|
||||
clear_aes_keyslot(k);
|
||||
}
|
||||
|
||||
set_has_rebooted(true);
|
||||
reboot_to_self();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue