aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2017-03-18 14:36:49 +0200
committerGitHub <noreply@github.com>2017-03-18 14:36:49 +0200
commit5fcfc9cc963192af8cffdaefcbd81aecfa7bb620 (patch)
tree99c0fbcb35428f78d0bd64cf184a25fe920ac806 /src/core
parent0180121d53d4f2cef14e1bece00bcbed0165141e (diff)
parent52b1d8af8b33841257c6d300b9c55feb906401e8 (diff)
Merge pull request #2631 from wwylele/fix-unwrap
apt: fix RequestBuilder parameters for Unwrap
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/apt/apt.cpp2
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 e57b19c2d1..1517d3a2fc 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) {
// Decrypts the ciphertext using AES-CCM
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()) {
// Splits the plaintext and put the nonce in between
Memory::WriteBlock(output, pdata.data(), nonce_offset);