mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 02:15:07 -04:00
Implement masterkey logic, KEYSLOT defines.
This commit is contained in:
parent
61f8886879
commit
07f9e9500e
5 changed files with 126 additions and 7 deletions
|
@ -108,8 +108,7 @@ uint64_t try_set_smc_callback(uint32_t (*callback)(void *, uint64_t)) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* TODO: Keyslot defines. */
|
||||
se_generate_random(0xB, &key, sizeof(uint64_t));
|
||||
se_generate_random(KEYSLOT_SWITCH_RNGKEY, &key, sizeof(uint64_t));
|
||||
g_smc_callback_key = key;
|
||||
g_smc_callback = callback;
|
||||
return key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue