yuzu-emu
/
yuzu
Archived
1
0
Fork 0

partition_data_manager: Add accessor for decrypted PRODINFO partition

This commit is contained in:
Zach Hilman 2019-04-10 10:22:38 -04:00
parent 4b91057688
commit b4164d295b
2 changed files with 5 additions and 0 deletions

View File

@ -480,6 +480,10 @@ void PartitionDataManager::DecryptProdInfo(std::array<u8, 0x20> bis_key) {
prodinfo_decrypted = std::make_shared<XTSEncryptionLayer>(prodinfo, 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, 576> PartitionDataManager::GetETicketExtendedKek() const {
std::array<u8, 0x240> out{}; std::array<u8, 0x240> out{};
if (prodinfo_decrypted != nullptr) if (prodinfo_decrypted != nullptr)

View File

@ -84,6 +84,7 @@ public:
bool HasProdInfo() const; bool HasProdInfo() const;
FileSys::VirtualFile GetProdInfoRaw() const; FileSys::VirtualFile GetProdInfoRaw() const;
void DecryptProdInfo(std::array<u8, 0x20> bis_key); void DecryptProdInfo(std::array<u8, 0x20> bis_key);
FileSys::VirtualFile GetDecryptedProdInfo() const;
std::array<u8, 0x240> GetETicketExtendedKek() const; std::array<u8, 0x240> GetETicketExtendedKek() const;
private: private: