diff options
| author | 2017-03-18 14:36:49 +0200 | |
|---|---|---|
| committer | 2017-03-18 14:36:49 +0200 | |
| commit | 2f625f2c6f2e50cad67fd6644d3fd11d0458920b (patch) | |
| tree | 99c0fbcb35428f78d0bd64cf184a25fe920ac806 /src | |
| parent | Merge pull request #2497 from wwylele/input-2 (diff) | |
| parent | apt: fix RequestBuilder parameters for Unwrap (diff) | |
| download | yuzu-2f625f2c6f2e50cad67fd6644d3fd11d0458920b.tar.gz yuzu-2f625f2c6f2e50cad67fd6644d3fd11d0458920b.tar.xz yuzu-2f625f2c6f2e50cad67fd6644d3fd11d0458920b.zip | |
Merge pull request #2631 from wwylele/fix-unwrap
apt: fix RequestBuilder parameters for Unwrap
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/apt/apt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index e57b19c2d..1517d3a2f 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp | |||
| @@ -554,7 +554,7 @@ void Unwrap(Service::Interface* self) { | |||
| 554 | // Decrypts the ciphertext using AES-CCM | 554 | // Decrypts the ciphertext using AES-CCM |
| 555 | auto pdata = HW::AES::DecryptVerifyCCM(cipher, nonce, HW::AES::KeySlotID::APTWrap); | 555 | auto pdata = HW::AES::DecryptVerifyCCM(cipher, nonce, HW::AES::KeySlotID::APTWrap); |
| 556 | 556 | ||
| 557 | IPC::RequestBuilder rb = rp.MakeBuilder(1, 0); | 557 | IPC::RequestBuilder rb = rp.MakeBuilder(1, 4); |
| 558 | if (!pdata.empty()) { | 558 | if (!pdata.empty()) { |
| 559 | // Splits the plaintext and put the nonce in between | 559 | // Splits the plaintext and put the nonce in between |
| 560 | Memory::WriteBlock(output, pdata.data(), nonce_offset); | 560 | Memory::WriteBlock(output, pdata.data(), nonce_offset); |