Hi,
I am working on a i.mx 8MPlus EVK.
I want to (1) generate EC key pair, (2) derive shared ECDH secret, (3) compute SHA-256 digest of the ECDH shared secret and (4) perform AES-GCM-256 data encryption with the computed digest using CAAM hardware acceleration for all the 4 operations.
(The file will later be decrypted on another device).
I referred to AN-12838 (from 2020), however it just shows generation of EC key pair:
openssl ecparam -engine devcrypto -genkey -out blackkey.pem -name prime256v1
What is the latest recommended way to use CAAM hardware acceleration for these 4 operations?
Thank you.