PS:EncryptDecryptAes: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000401C4] |- | 1 | Size in bytes |- | 2 | Unused |- | 3-6 | IV / CTR |- | 7 | u8..."
 
Yifanlu (talk | contribs)
SSL process passes dst size as word 2. did not check if it is used though.
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
|-
|-
| 0
| 0
| Header code [0x000401C4]
| Header code [0x00040204]
|-
|-
| 1
| 1
Line 12: Line 12:
|-
|-
| 2
| 2
| Unused
| Destination size in bytes (Unused)
|-
|-
| 3-6
| 3-6
Line 49: Line 49:
|-
|-
| 2-5
| 2-5
| MAC
| See [[PSPXI:EncryptDecryptAes|here]].
|}
|}


=Description=
=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.
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.

Latest revision as of 22:54, 23 March 2015

Request

Index Word Description
0 Header code [0x00040204]
1 Size in bytes
2 Destination size in bytes (Unused)
3-6 IV / CTR
7 u8 Algorithm Type (0..5)
8 u8 Key Type (0..7)
9 (size<<4) | 10
10 Source pointer
11 (size<<4) | 12
12 Destination pointer

Response

Index Word Description
0 Header code [0x00040144]
1 Result code
2-5 See here.

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.