diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-02-12 11:50:35 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-02-26 19:46:30 +0100 |
| commit | 5104caf6a647dac47509a8e0540a2eb04c1b1ec7 (patch) | |
| tree | f22d4b532e62f1433d87f128c719bb7f8dc7c1a1 /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | c1a139e8ace17e45e8ca6977b6f6b19a1a4195f2 (diff) | |
Move AES code to Common/Crypto
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/NANDContentLoader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 0344fe1c46..62e2e174cb 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -17,6 +17,7 @@ #include "Common/Align.h" #include "Common/CommonFuncs.h" #include "Common/CommonTypes.h" +#include "Common/Crypto/AES.h" #include "Common/FileUtil.h" #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" @@ -239,7 +240,7 @@ void CNANDContentLoader::InitializeContentEntries(const std::vector<u8>& data_ap u32 rounded_size = Common::AlignUp(static_cast<u32>(content.size), 0x40); - m_Content[i].m_Data = std::make_unique<CNANDContentDataBuffer>(IOS::ES::AESDecode( + m_Content[i].m_Data = std::make_unique<CNANDContentDataBuffer>(Common::AES::Decrypt( title_key.data(), iv.data(), &data_app[data_app_offset], rounded_size)); data_app_offset += rounded_size; } |
