20. Cryp_decrypt_suspend_resume
20.1. Function description:
This demo shows the operation of suspend in decrypting.
Configure & start the higher priority encryption for DES ECB mode if support, or SM4 CBC mode, otherwise is AES CTR mode.
Configure & start the encryption for AES CBC mode.
Configure & start the decryption for AES CBC mode, and suspend it.
After finish one block decryption for AES CBC mode, then to start the higher priority decryption.
After finish the higher priority decryption, then to resume the the decryption for AES CBC mode.
Compare the decryption result with the plaintext to verify the function of suspend.
20.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.
20.3. IO connection:
None