Merge pull request #299 from jakcron/master

Fixed cmd word index fail in pm.c
This commit is contained in:
fincs 2016-07-21 14:23:10 +02:00 committed by GitHub
commit 9e53a7cd61

View File

@ -66,10 +66,10 @@ Result PS_EncryptSignDecryptVerifyAesCcm(u8* in, u32 in_size, u8* out, u32 out_s
memcpy(&cmdbuf[6], _nonce, 12); memcpy(&cmdbuf[6], _nonce, 12);
cmdbuf[9] = aes_algo; cmdbuf[9] = aes_algo;
cmdbuf[10] = key_type; cmdbuf[10] = key_type;
cmdbuf[8] = IPC_Desc_PXIBuffer(in_size,0,false); cmdbuf[11] = IPC_Desc_PXIBuffer(in_size,0,false);
cmdbuf[9] = (u32)in; cmdbuf[12] = (u32)in;
cmdbuf[10] = IPC_Desc_PXIBuffer(out_size,1,false); cmdbuf[13] = IPC_Desc_PXIBuffer(out_size,1,false);
cmdbuf[11] = (u32)out; cmdbuf[14] = (u32)out;
if(R_FAILED(ret = svcSendSyncRequest(psHandle)))return ret; if(R_FAILED(ret = svcSendSyncRequest(psHandle)))return ret;