29. Cryp_encrypt_suspend_resume
29.1. Function description:
This demo shows the operation of suspend in encrypting.
Configure & start the encryption for AES CBC mode.
After finish one block encryption for AES CBC mode, then to start the higher priority encryption for DES ECB mode if support, or SM4 CBC mode, otherwise is AES CTR mode.
After finish the higher priority encryption, then to resume the the encryption for AES CBC mode.
Configure & start the decryption for AES CBC mode.
Configure & start the higher priority decryption.
Compare the decryption result with the plaintext to verify the function of suspend.
29.2. Test result:
After the operation of encryption and decryption, if the decryption result is same as the plaintext data, then print pass, if not print fail.
29.3. IO connection:
None