diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-08-16 23:12:31 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-23 17:53:30 +0200 |
commit | 61a5b56abde4a87e1e66c76b506bdd4dada58389 (patch) | |
tree | 186d2efbf0577104b32379a18ea60f4c5fdf6679 /src/core/crypto/key_manager.h | |
parent | key_manager: Add support for KEK and SD seed derivation (diff) | |
download | yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.tar yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.tar.gz yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.tar.bz2 yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.tar.lz yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.tar.xz yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.tar.zst yuzu-61a5b56abde4a87e1e66c76b506bdd4dada58389.zip |
Diffstat (limited to 'src/core/crypto/key_manager.h')
-rw-r--r-- | src/core/crypto/key_manager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h index 31040dc55..78d0b64e0 100644 --- a/src/core/crypto/key_manager.h +++ b/src/core/crypto/key_manager.h @@ -106,6 +106,8 @@ private: void LoadFromFile(const std::string& filename, bool is_title_keys); void AttemptLoadKeyFile(const std::string& dir1, const std::string& dir2, const std::string& filename, bool title); + template <size_t Size> + void WriteKeyToFile(bool title_key, std::string_view keyname, std::array<u8, Size> key); static const boost::container::flat_map<std::string, KeyIndex<S128KeyType>> s128_file_id; static const boost::container::flat_map<std::string, KeyIndex<S256KeyType>> s256_file_id; |