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) {