Fix bug where NCA header key was not imported.

This commit is contained in:
jakcron 2021-10-23 08:44:21 +08:00
parent ebdf0211f4
commit b827cea828

View file

@ -266,7 +266,7 @@ void nstool::KeyBagInitializer::importBaseKeyFile(const tc::io::Path& keyfile_pa
{ {
// nca header key // nca header key
//fmt::print("{:s}_{:s}\n", kContentArchiveHeaderBase[name_idx], kKeyStr); //fmt::print("{:s}_{:s}\n", kContentArchiveHeaderBase[name_idx], kKeyStr);
//_SAVE_AES128XTSKEY(fmt::format("{:s}_{:s}", kContentArchiveHeaderBase[name_idx], kKeyStr), nca_header_key); _SAVE_AES128XTSKEY(fmt::format("{:s}_{:s}", kContentArchiveHeaderBase[name_idx], kKeyStr), nca_header_key);
// nca header sign0 key (generations) // nca header sign0 key (generations)
for (size_t keygen_rev = 0; keygen_rev < kKeyGenerationNum; keygen_rev++) for (size_t keygen_rev = 0; keygen_rev < kKeyGenerationNum; keygen_rev++)