From c0617982b8534e75f65040520f9c4f8045243c81 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 16 May 2018 16:45:44 +0200 Subject: [PATCH] Fix typo in decrypting all keyblobs (thanks @tslater2006 !) --- fusee/fusee-secondary/src/key_derivation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusee/fusee-secondary/src/key_derivation.c b/fusee/fusee-secondary/src/key_derivation.c index aadc4d9cd..7fd55053a 100644 --- a/fusee/fusee-secondary/src/key_derivation.c +++ b/fusee/fusee-secondary/src/key_derivation.c @@ -111,7 +111,7 @@ int derive_nx_keydata(uint32_t target_firmware, const nx_keyblob_t *keyblobs, ui set_aes_keyslot(0xD, work_buffer, 0x10); /* Decrypt all keyblobs. */ - for (unsigned int rev = MASTERKEY_REVISION_100_230; rev < MASTERKEY_REVISION_500_CURRENT; rev++) { + for (unsigned int rev = 0; rev < MASTERKEY_REVISION_MAX; rev++) { int ret = decrypt_keyblob(keyblobs, rev, available_revision); if (ret) { return ret;