summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-08-12 21:18:55 +0200
committerLiam <byteslice@airmail.cc>2023-08-15 23:47:40 +0200
commit50eee9b2185c59c32fb82cf464230a058edd10ea (patch)
treebeebc2d0da1fa0678a067de9c12cb7d11c775748 /src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h
parentfssystem: reduce overalignment of unbuffered storage operations (diff)
downloadyuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.tar
yuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.tar.gz
yuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.tar.bz2
yuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.tar.lz
yuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.tar.xz
yuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.tar.zst
yuzu-50eee9b2185c59c32fb82cf464230a058edd10ea.zip
Diffstat (limited to 'src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h')
-rw-r--r--src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h b/src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h
index bceb1f9ad..339e49697 100644
--- a/src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h
+++ b/src/core/file_sys/fssystem/fssystem_aes_ctr_storage.h
@@ -22,12 +22,6 @@ public:
static constexpr size_t KeySize = 0x10;
static constexpr size_t IvSize = 0x10;
-private:
- VirtualFile m_base_storage;
- std::array<u8, KeySize> m_key;
- std::array<u8, IvSize> m_iv;
- mutable std::optional<Core::Crypto::AESCipher<Core::Crypto::Key128>> m_cipher;
-
public:
static void MakeIv(void* dst, size_t dst_size, u64 upper, s64 offset);
@@ -38,6 +32,12 @@ public:
virtual size_t Read(u8* buffer, size_t size, size_t offset) const override;
virtual size_t Write(const u8* buffer, size_t size, size_t offset) override;
virtual size_t GetSize() const override;
+
+private:
+ VirtualFile m_base_storage;
+ std::array<u8, KeySize> m_key;
+ std::array<u8, IvSize> m_iv;
+ mutable std::optional<Core::Crypto::AESCipher<Core::Crypto::Key128>> m_cipher;
};
} // namespace FileSys