PSPXI:EncryptSignDecryptVerifyAesCcm: Difference between revisions
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00050284] |- | 1 | Input buffer size |- | 2 | Output buffer size |- | 3 | Total ..." |
No edit summary |
||
Line 59: | Line 59: | ||
=MAC= | =MAC= | ||
For AES-CCM encryption, the output MAC is written to outputbufptr+( | 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= | =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. | 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. |