Address comments
This commit is contained in:
@@ -72,9 +72,9 @@ namespace Crypto {
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct AESKeySlot {
|
struct AESKeySlot {
|
||||||
std::optional<AESKey> keyX;
|
std::optional<AESKey> keyX{std::nullopt};
|
||||||
std::optional<AESKey> keyY;
|
std::optional<AESKey> keyY{std::nullopt};
|
||||||
std::optional<AESKey> normalKey;
|
std::optional<AESKey> normalKey{std::nullopt};
|
||||||
};
|
};
|
||||||
|
|
||||||
enum KeySlotId : std::size_t {
|
enum KeySlotId : std::size_t {
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSIn
|
|||||||
printf("NCSD is supposedly ecrypted but not actually encrypted\n");
|
printf("NCSD is supposedly ecrypted but not actually encrypted\n");
|
||||||
encrypted = false;
|
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) {
|
if (encrypted) {
|
||||||
auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize);
|
auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize);
|
||||||
if (!success || bytes != exheaderSize) {
|
if (!success || bytes != exheaderSize) {
|
||||||
|
|||||||
Reference in New Issue
Block a user