mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-09 09:38:41 +00:00
Update src/core/file_format/pkg.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
parent
3a7200dbac
commit
caa213f36b
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ bool PKG::Extract(const std::string& filepath, const std::filesystem::path& extr
|
||||||
PKG::crypto.RSA2048Decrypt(dk3_, key1[3], true); // decrypt DK3
|
PKG::crypto.RSA2048Decrypt(dk3_, key1[3], true); // decrypt DK3
|
||||||
} else if (entry.id == 0x20) { // IMAGE_KEY, seek; IV_KEY
|
} else if (entry.id == 0x20) { // IMAGE_KEY, seek; IV_KEY
|
||||||
file.Seek(entry.offset);
|
file.Seek(entry.offset);
|
||||||
file.ReadRaw<u8>(imgkeydata.data(), imgkeydata.size());
|
file.Read(imgkeydata);
|
||||||
|
|
||||||
// The Concatenated iv + dk3 imagekey for HASH256
|
// The Concatenated iv + dk3 imagekey for HASH256
|
||||||
std::array<CryptoPP::byte, 64> concatenated_ivkey_dk3;
|
std::array<CryptoPP::byte, 64> concatenated_ivkey_dk3;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue