mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-26 05:42:17 +00:00
sept: minor fix
This commit is contained in:
parent
493b074a9e
commit
11d8021435
1 changed files with 3 additions and 3 deletions
|
@ -52,9 +52,9 @@ void derive_keys(uint32_t version) {
|
|||
}
|
||||
|
||||
void load_keys(const uint8_t *se_state) {
|
||||
/* Clear keyslot 0xA. */
|
||||
/* Clear keyslots up to 0xA. */
|
||||
for (size_t i = 0; i < 0xA; i++) {
|
||||
clear_aes_keyslot(0xA);
|
||||
clear_aes_keyslot(i);
|
||||
}
|
||||
|
||||
/* Copy device keygen key out of state keyslot 0xA into keyslot 0xA. */
|
||||
|
@ -75,7 +75,7 @@ void load_keys(const uint8_t *se_state) {
|
|||
/* Copy device key out of state keyslot 0xF into keyslot 0xF. */
|
||||
set_aes_keyslot(0xF, se_state + 0x30 + (0xF * 0x20), 0x10);
|
||||
|
||||
/* Set keyslot flags properly in preparation of derivation. */
|
||||
/* Set keyslot flags properly in preparation for secmon. */
|
||||
set_aes_keyslot_flags(0xE, 0x15);
|
||||
set_aes_keyslot_flags(0xD, 0x15);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue