diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-10 16:22:38 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 22:43:10 +0200 |
commit | b4164d295b052cb7ba0962b443691a224e0a6598 (patch) | |
tree | 933c6b2cbfb3169c5aaeccd7c973136d33f58f8b /src/core | |
parent | services: Pass FileSystemController as reference to services that need it (diff) | |
download | yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.tar yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.tar.gz yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.tar.bz2 yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.tar.lz yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.tar.xz yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.tar.zst yuzu-b4164d295b052cb7ba0962b443691a224e0a6598.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/crypto/partition_data_manager.cpp | 4 | ||||
-rw-r--r-- | src/core/crypto/partition_data_manager.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/crypto/partition_data_manager.cpp b/src/core/crypto/partition_data_manager.cpp index 01a969be9..594cd82c5 100644 --- a/src/core/crypto/partition_data_manager.cpp +++ b/src/core/crypto/partition_data_manager.cpp @@ -480,6 +480,10 @@ void PartitionDataManager::DecryptProdInfo(std::array<u8, 0x20> bis_key) { prodinfo_decrypted = std::make_shared<XTSEncryptionLayer>(prodinfo, bis_key); } +FileSys::VirtualFile PartitionDataManager::GetDecryptedProdInfo() const { + return prodinfo_decrypted; +} + std::array<u8, 576> PartitionDataManager::GetETicketExtendedKek() const { std::array<u8, 0x240> out{}; if (prodinfo_decrypted != nullptr) diff --git a/src/core/crypto/partition_data_manager.h b/src/core/crypto/partition_data_manager.h index 0ad007c72..7a7b5d038 100644 --- a/src/core/crypto/partition_data_manager.h +++ b/src/core/crypto/partition_data_manager.h @@ -84,6 +84,7 @@ public: bool HasProdInfo() const; FileSys::VirtualFile GetProdInfoRaw() const; void DecryptProdInfo(std::array<u8, 0x20> bis_key); + FileSys::VirtualFile GetDecryptedProdInfo() const; std::array<u8, 0x240> GetETicketExtendedKek() const; private: |