From f6f80654170b05fbb925eea56d583cc9d5395602 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 11 May 2018 23:57:48 +0200 Subject: [PATCH] We actually need the pk1 key --- fusee/fusee-secondary/src/key_derivation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fusee/fusee-secondary/src/key_derivation.c b/fusee/fusee-secondary/src/key_derivation.c index d0db0173a..c38583d10 100644 --- a/fusee/fusee-secondary/src/key_derivation.c +++ b/fusee/fusee-secondary/src/key_derivation.c @@ -42,7 +42,7 @@ void get_keyblob(nx_keyblob_t *dst, uint32_t revision, const nx_keyblob_t *keybl } if (keyblobs != NULL) { - *dst = available_keyblobs[revision]; + *dst = keyblobs[revision]; } else { generic_panic(); /* 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. */ 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. */ memset(keyblob.data, 0, sizeof(keyblob.data));