Fix keyblob key derivation regression

This commit is contained in:
Alex Barney 2019-12-26 19:34:23 -07:00
parent 70a879917a
commit d68062c8b4

View File

@ -273,8 +273,8 @@ namespace LibHac
{
if (KeyblobKeySources[i].IsEmpty()) continue;
Aes.DecryptEcb128(KeyblobKeySources[i], temp, SecureBootKey);
Aes.DecryptEcb128(temp, KeyblobKeys[i], TsecKey);
Aes.DecryptEcb128(KeyblobKeySources[i], temp, TsecKey);
Aes.DecryptEcb128(temp, KeyblobKeys[i], SecureBootKey);
if (!haveKeyblobMacKeySource) continue;