From 0494ca0064fed7dfb2f44827436f03ea283f2676 Mon Sep 17 00:00:00 2001 From: Mary Date: Tue, 20 Jun 2023 08:31:31 +0200 Subject: [PATCH] Address comments --- include/crypto/aes_engine.hpp | 6 +++--- src/core/loader/ncch.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/crypto/aes_engine.hpp b/include/crypto/aes_engine.hpp index 9c92feba..0bb579c5 100644 --- a/include/crypto/aes_engine.hpp +++ b/include/crypto/aes_engine.hpp @@ -72,9 +72,9 @@ namespace Crypto { } struct AESKeySlot { - std::optional keyX; - std::optional keyY; - std::optional normalKey; + std::optional keyX{std::nullopt}; + std::optional keyY{std::nullopt}; + std::optional normalKey{std::nullopt}; }; enum KeySlotId : std::size_t { diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index fb121fa5..1a4178fe 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -118,7 +118,7 @@ bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSIn printf("NCSD is supposedly ecrypted but not actually encrypted\n"); encrypted = false; } - // If it's truely encrypted, we need to read section again. + // If it's truly encrypted, we need to read section again. if (encrypted) { auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize); if (!success || bytes != exheaderSize) {