PS:EncryptDecryptAes

PS:EncryptDecryptAes

Request #

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

Response #

Index WordDescription
0Header code [0x00040144]
1Result code
2-5See 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.