Changes

Jump to navigation Jump to search
1,221 bytes added ,  15:03, 9 September 2016
Created page with "Adapted from PS:EncryptDecryptAes to illustrate the new IPC command templates. =Request= {{IPC/Request}} {{#vardefine:ipc_offset|0}} {{IPC/RequestEntry|Header code [0x000..."
Adapted from [[PS:EncryptDecryptAes]] to illustrate the new IPC command templates.

=Request=
{{IPC/Request}}
{{#vardefine:ipc_offset|0}}
{{IPC/RequestEntry|Header code [0x00040204]}}
{{IPC/RequestEntry|Size in bytes}}
{{IPC/RequestEntry|Destination size in bytes (Unused)}}
{{IPC/RequestEntry|IV / CTR}}
{{IPC/RequestEntry|IV / CTR}}
{{IPC/RequestEntry|IV / CTR}}
{{IPC/RequestEntry|IV / CTR}}
{{IPC/RequestEntry|u8 Algorithm [[PSPXI:EncryptDecryptAes|Type]] (0..5)}}
{{IPC/RequestEntry|u8 Key [[PSPXI:EncryptDecryptAes|Type]] (0..7)}}
{{IPC/MapPointerR|Source pointer}}
{{IPC/MapPointerW|Destination pointer}}
{{IPC/RequestEnd}}

=Response=
{{IPC/Request}}
{{#vardefine:ipc_offset|0}}
{{IPC/RequestEntry|Header code [0x00040144]}}
{{IPC/RequestEntry|Result code}}
|-
| 2-5
| See [[PSPXI:EncryptDecryptAes|here]].
{{IPC/RequestEnd}}

=Description=
This is a wrapper for [[PSPXI:EncryptDecryptAes]]. Before using this PSPXI command, PS module will check whether the algorithm type is AES-CCM. PS module will return error-code 0xC90107E8 when the algorithm type is AES-CCM, since [[PSPXI:EncryptDecryptAes]] doesn't support AES-CCM. When the algorithm type is AES-CBC, PS module will clear the low 4-bits of the data size.
549

edits

Navigation menu