6. Cryp_aes_ccm

6.1. Function description:

This demo shows the operation of cryptographic processor, algorithm is AES, algorithm mode including CCM, appending data using the CPU in polling mode.

  • Configure and prepare the plaintext & additional authenticated data firstly, then start the encryption to get ciphertext & tag data.

  • Compare the encryption & tag result with the standard to verify the function of encryption

  • Configure & start the decryption, the ciphertext data is comming from encryption result.

  • Compare the decryption result with the plaintext to verify the function of decryption.

Note

  1. Need to prepare temporary header buffer, the length must at least greater than additional authenticated data with 21 bytes.

6.2. Test result:

After the operation of encryption and decryption, if the encryption, decryption & tag data is same as the standard, then print pass, if not print fail.

6.3. IO connection:

None