diff options
author | Liam <byteslice@airmail.cc> | 2024-02-27 01:28:49 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-27 01:28:49 +0100 |
commit | c7174d5f612a57b6dd55dc51306b1852f5f8b786 (patch) | |
tree | 438a7f03abceb3d21646f57c9fb89428390e977b /src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp | |
parent | Merge pull request #13172 from liamwhite/gl-streams (diff) | |
download | yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.tar yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.tar.gz yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.tar.bz2 yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.tar.lz yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.tar.xz yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.tar.zst yuzu-c7174d5f612a57b6dd55dc51306b1852f5f8b786.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp b/src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp index 022424229..efc5aa0b1 100644 --- a/src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp +++ b/src/core/file_sys/fssystem/fssystem_aes_xts_storage.cpp @@ -31,8 +31,8 @@ AesXtsStorage::AesXtsStorage(VirtualFile base, const void* key1, const void* key ASSERT(iv_size == IvSize); ASSERT(Common::IsAligned(m_block_size, AesBlockSize)); - std::memcpy(m_key.data() + 0, key1, KeySize); - std::memcpy(m_key.data() + 0x10, key2, KeySize); + std::memcpy(m_key.data() + 0, key1, KeySize / 2); + std::memcpy(m_key.data() + 0x10, key2, KeySize / 2); std::memcpy(m_iv.data(), iv, IvSize); m_cipher.emplace(m_key, Core::Crypto::Mode::XTS); |