mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 06:30:05 +00:00
partition_data_manager: Add accessor for decrypted PRODINFO partition
This commit is contained in:
parent
4b91057688
commit
b4164d295b
@ -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)
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user