mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
We actually need the pk1 key
This commit is contained in:
parent
4ada3b6195
commit
f6f8065417
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ void get_keyblob(nx_keyblob_t *dst, uint32_t revision, const nx_keyblob_t *keybl
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyblobs != NULL) {
|
if (keyblobs != NULL) {
|
||||||
*dst = available_keyblobs[revision];
|
*dst = keyblobs[revision];
|
||||||
} else {
|
} else {
|
||||||
generic_panic();
|
generic_panic();
|
||||||
/* TODO: what should we do? */
|
/* TODO: what should we do? */
|
||||||
|
@ -96,7 +96,7 @@ void derive_nx_keydata(uint32_t target_firmware, const nx_keyblob_t *keyblobs, u
|
||||||
|
|
||||||
/* Get needed data. */
|
/* Get needed data. */
|
||||||
set_aes_keyslot(0xC, keyblob.keys[0], 0x10);
|
set_aes_keyslot(0xC, keyblob.keys[0], 0x10);
|
||||||
/* We don't need the Package1 Key, but for reference: set_aes_keyslot(0xB, keyblob.keys[8], 0x10); */
|
set_aes_keyslot(0xB, keyblob.keys[8], 0x10);
|
||||||
|
|
||||||
/* Clear keyblob. */
|
/* Clear keyblob. */
|
||||||
memset(keyblob.data, 0, sizeof(keyblob.data));
|
memset(keyblob.data, 0, sizeof(keyblob.data));
|
||||||
|
|
Loading…
Reference in a new issue