From 9b05803d6c66703b48ce4b7005181a7b988e549b Mon Sep 17 00:00:00 2001 From: AzaharPlus Date: Mon, 7 Apr 2025 19:48:18 +0200 Subject: [PATCH] use embedded keys --- src/core/hw/aes/key.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/hw/aes/key.cpp b/src/core/hw/aes/key.cpp index 6587f6ec4..9e8d8887f 100644 --- a/src/core/hw/aes/key.cpp +++ b/src/core/hw/aes/key.cpp @@ -32,10 +32,10 @@ namespace { // On a real 3DS the generation for the normal key is hardware based, and thus the constant can't // get dumped. Generated normal keys are also not accessible on a 3DS. The used formula for // calculating the constant is a software implementation of what the hardware generator does. -//AESKey generator_constant; +AESKey generator_constant; -constexpr AESKey generator_constant = {{0x1F, 0xF9, 0xE9, 0xAA, 0xC5, 0xFE, 0x04, 0x08, 0x02, 0x45, - 0x91, 0xDC, 0x5D, 0x52, 0x76, 0x8A}}; +//constexpr AESKey generator_constant = {{0x1F, 0xF9, 0xE9, 0xAA, 0xC5, 0xFE, 0x04, 0x08, 0x02, 0x45, +// 0x91, 0xDC, 0x5D, 0x52, 0x76, 0x8A}}; AESKey HexToKey(const std::string& hex) { if (hex.size() < 32) { @@ -217,7 +217,7 @@ void LoadBootromKeys() { } } -#ifdef todotodo +#ifndef todotodo void LoadPresetKeys() { auto s = GetKeysStream();