Hi there,
I am using CAAM in trusty for IMX boards, I am able to work out AES and DES in ECB mode, also RSA and SHA is working. I am not getting the right encrypted values for CBC mode. Following is the code changes for job descriptor , it's similar to what's done in trusty/hardware/nxp/app/hwcrypto/caam.c for ECB mode, I have changed slightly for CBC mode. I am not getting any error, just the encrypted output is not matching the ciphertext expected.
Can someone please confirm if I am doing it in the right way for AES CBC mode?
g_job->dsc[0] = 0xb080000A
g_job->dsc[1] = 0x02000010;
g_job->dsc[2] = key_pa;
解決済! 解決策の投稿を見る。
I was able to resolve the issue.