From e608d79f424dae9371ebe0df27fbb0c9e53b9afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 2 Jul 2017 21:51:53 +0200 Subject: [PATCH] IOSC: Load the backup/PRNG key --- Source/Core/Core/IOS/IOSC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IOS/IOSC.cpp b/Source/Core/Core/IOS/IOSC.cpp index a83a84f50f..edb6fdf734 100644 --- a/Source/Core/Core/IOS/IOSC.cpp +++ b/Source/Core/Core/IOS/IOSC.cpp @@ -430,8 +430,9 @@ void IOSC::LoadDefaultEntries(ConsoleType console_type) break; } - // Unimplemented. - m_key_entries[HANDLE_PRNG_KEY] = {TYPE_SECRET_KEY, SUBTYPE_AES128, std::vector(16), 3}; + m_key_entries[HANDLE_PRNG_KEY] = { + TYPE_SECRET_KEY, SUBTYPE_AES128, + std::vector(ec.GetBackupKey(), ec.GetBackupKey() + AES128_KEY_SIZE), 3}; m_key_entries[HANDLE_SD_KEY] = {TYPE_SECRET_KEY, SUBTYPE_AES128,