PS:EncryptSignDecryptVerifyAesCcm

PS:EncryptSignDecryptVerifyAesCcm

Request #

Index WordDescription
0Header code [0x00050284]
1Input buffer size, unused by PS module.
2Total CBC-MAC associated data, in bytes.
3Total data size, in bytes.
4Output buffer size, unused by PS module.
5MAC size in bytes.
6-8Nonce
9Algorithm Type (0..5)
10Key Type (0..7)
11(inbufsize<<4) | 10
12Source pointer
13(outbufsize<<4) | 12
14Destination pointer

Response #

Index WordDescription
0Header code
1Result code

Description #

This is a wrapper for PSPXI:EncryptSignDecryptVerifyAesCcm. The algorithm type must be AES-CCM, otherwise PS module will return error-code 0xC90107E8. When the CBC-MAC total associated data-size is not aligned to 0x10-bytes, or when MAC size bit0 is set / MAC size is >16-bytes, PS module will return error-code 0xC90107EC. PS module automatically determines the input/output buffer sizes for the specified algorithm-type for PSPXI:EncryptSignDecryptVerifyAesCcm, using the specified sizes for this command.