diff options
| author | 2019-09-22 11:42:34 +1000 | |
|---|---|---|
| committer | 2019-09-22 11:42:34 +1000 | |
| commit | c9ccdfbeac21ddd74d3cc79e8ef2c8d82f3d4efd (patch) | |
| tree | e260125fd1ef6e8a29b255b967a447eeb1aeb204 /src/core/crypto | |
| parent | Merge pull request #2883 from ogniK5377/log-game (diff) | |
| parent | configure_debug: Move reporting option to logging (diff) | |
| download | yuzu-c9ccdfbeac21ddd74d3cc79e8ef2c8d82f3d4efd.tar.gz yuzu-c9ccdfbeac21ddd74d3cc79e8ef2c8d82f3d4efd.tar.xz yuzu-c9ccdfbeac21ddd74d3cc79e8ef2c8d82f3d4efd.zip | |
Merge pull request #2430 from DarkLordZach/fs-controller
core: Implement FileSystemController to deglobalize FS services
Diffstat (limited to 'src/core/crypto')
| -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) { | |||
| 480 | prodinfo_decrypted = std::make_shared<XTSEncryptionLayer>(prodinfo, bis_key); | 480 | prodinfo_decrypted = std::make_shared<XTSEncryptionLayer>(prodinfo, bis_key); |
| 481 | } | 481 | } |
| 482 | 482 | ||
| 483 | FileSys::VirtualFile PartitionDataManager::GetDecryptedProdInfo() const { | ||
| 484 | return prodinfo_decrypted; | ||
| 485 | } | ||
| 486 | |||
| 483 | std::array<u8, 576> PartitionDataManager::GetETicketExtendedKek() const { | 487 | std::array<u8, 576> PartitionDataManager::GetETicketExtendedKek() const { |
| 484 | std::array<u8, 0x240> out{}; | 488 | std::array<u8, 0x240> out{}; |
| 485 | if (prodinfo_decrypted != nullptr) | 489 | 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: | |||
| 84 | bool HasProdInfo() const; | 84 | bool HasProdInfo() const; |
| 85 | FileSys::VirtualFile GetProdInfoRaw() const; | 85 | FileSys::VirtualFile GetProdInfoRaw() const; |
| 86 | void DecryptProdInfo(std::array<u8, 0x20> bis_key); | 86 | void DecryptProdInfo(std::array<u8, 0x20> bis_key); |
| 87 | FileSys::VirtualFile GetDecryptedProdInfo() const; | ||
| 87 | std::array<u8, 0x240> GetETicketExtendedKek() const; | 88 | std::array<u8, 0x240> GetETicketExtendedKek() const; |
| 88 | 89 | ||
| 89 | private: | 90 | private: |