mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-01-18 19:26:12 +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_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state);
|
||||||
se_set_in_context_save_mode(false);
|
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);
|
set_has_rebooted(true);
|
||||||
reboot_to_self();
|
reboot_to_self();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue