summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/content_archive.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-07 23:01:25 +0200
committerGitHub <noreply@github.com>2018-08-07 23:01:25 +0200
commitb9829a05bec6118b3ba96b3fc1de06a7215b3f3d (patch)
tree86da7287b1a17d9ebf3c92946247128639c7df59 /src/core/file_sys/content_archive.h
parentMerge pull request #957 from lioncash/event (diff)
parentcontent_archive: Add support for titlekey cryptography (diff)
downloadyuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.tar
yuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.tar.gz
yuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.tar.bz2
yuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.tar.lz
yuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.tar.xz
yuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.tar.zst
yuzu-b9829a05bec6118b3ba96b3fc1de06a7215b3f3d.zip
Diffstat (limited to 'src/core/file_sys/content_archive.h')
-rw-r--r--src/core/file_sys/content_archive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h
index 6492163b5..a8879d9a8 100644
--- a/src/core/file_sys/content_archive.h
+++ b/src/core/file_sys/content_archive.h
@@ -95,7 +95,9 @@ protected:
bool ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir dir) override;
private:
+ u8 GetCryptoRevision() const;
boost::optional<Core::Crypto::Key128> GetKeyAreaKey(NCASectionCryptoType type) const;
+ boost::optional<Core::Crypto::Key128> GetTitlekey() const;
VirtualFile Decrypt(NCASectionHeader header, VirtualFile in, u64 starting_offset) const;
std::vector<VirtualDir> dirs;