32. Cryp_key_prepare_it
32.1. Function description:
This demo shows how to trigger Key Prepare Finish Interrupt, algorithm is AES, algorithm mode including CBC.
Enable global interrupt & register CRYP interrupt.
Enable the related interrupt.
Configure and prepare the plaintext data firstly, then start the encryption to get ciphertext data.
Configure & prepare the key for decryption, if finish the key preparation will trigger the interrupt.
Configure & start the decryption, the ciphertext data is comming from encryption result.
Compare the decryption result with the plaintext to verify the function of encryption and decryption.
Note
For AES_CBC mode decryption, the key has to be prepared firstly.
32.2. Test result:
After the operation of encryption and decryption, if the decryption result is same as the plaintext data, also successfully trigger and enter interrupt service routine, then print pass, if not print fail.
32.3. IO connection:
None