PSPXI:EncryptSignDecryptVerifyAesCcm

PSPXI:EncryptSignDecryptVerifyAesCcm

Request #

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

Response #

Index WordDescription
0Header code
1Result code

MAC #

For AES-CCM encryption, the output MAC is written to outputbufptr+(totaldatasize). For AES-CCM decryption, the input MAC is located at inputbufptr+(totalassocdata+totaldatasize). For AES-CCM decryption when the calculated MAC is invalid, error-code 0xC9010401 is returned.

Description #

This is similar to PSPXI:EncryptDecryptAes, except this command is only used for AES-CCM. For AES-CCM encryption, the output buffer size must include the MAC, for AES-CCM decryption the input buffer size must include the MAC.