2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #2631 from wwylele/fix-unwrap

apt: fix RequestBuilder parameters for Unwrap
This commit is contained in:
Weiyi Wang 2017-03-18 14:36:49 +02:00 committed by GitHub
commit 2f625f2c6f

View file

@ -554,7 +554,7 @@ void Unwrap(Service::Interface* self) {
// Decrypts the ciphertext using AES-CCM // Decrypts the ciphertext using AES-CCM
auto pdata = HW::AES::DecryptVerifyCCM(cipher, nonce, HW::AES::KeySlotID::APTWrap); auto pdata = HW::AES::DecryptVerifyCCM(cipher, nonce, HW::AES::KeySlotID::APTWrap);
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0); IPC::RequestBuilder rb = rp.MakeBuilder(1, 4);
if (!pdata.empty()) { if (!pdata.empty()) {
// Splits the plaintext and put the nonce in between // Splits the plaintext and put the nonce in between
Memory::WriteBlock(output, pdata.data(), nonce_offset); Memory::WriteBlock(output, pdata.data(), nonce_offset);