summaryrefslogtreecommitdiffstats
path: root/src/core/crypto/aes_util.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-07-30 01:00:09 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-01 06:16:54 +0200
commit03149d3e4a7f8038d9c88cbeb19dee25a39e0042 (patch)
treecae04a5eefd883d1a665d9502370ec5ff9faa3fd /src/core/crypto/aes_util.h
parentAllow key loading from %YUZU_DIR%/keys in addition to ~/.switch (diff)
downloadyuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.tar
yuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.tar.gz
yuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.tar.bz2
yuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.tar.lz
yuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.tar.xz
yuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.tar.zst
yuzu-03149d3e4a7f8038d9c88cbeb19dee25a39e0042.zip
Diffstat (limited to '')
-rw-r--r--src/core/crypto/aes_util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/crypto/aes_util.h b/src/core/crypto/aes_util.h
index fa77d5560..5b0b02738 100644
--- a/src/core/crypto/aes_util.h
+++ b/src/core/crypto/aes_util.h
@@ -4,11 +4,16 @@
#pragma once
+#include <memory>
+#include <type_traits>
+#include <vector>
#include "common/assert.h"
#include "core/file_sys/vfs.h"
namespace Core::Crypto {
+struct CipherContext;
+
enum class Mode {
CTR = 11,
ECB = 2,
@@ -20,8 +25,6 @@ enum class Op {
Decrypt,
};
-struct CipherContext;
-
template <typename Key, size_t KeySize = sizeof(Key)>
class AESCipher {
static_assert(std::is_same_v<Key, std::array<u8, KeySize>>, "Key must be std::array of u8.");