ECDH using CAAM hardware acceleration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ECDH using CAAM hardware acceleration

549 Views
flying-hawk-342
Contributor I

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.

0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2161041%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EECDH%20using%20CAAM%20hardware%20acceleration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2161041%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20working%20on%20a%20i.mx%208MPlus%20EVK.%3C%2FP%3E%3CP%3EI%20want%20to%20(1)%20generate%20EC%20key%20pair%2C%20(2)%20derive%20shared%20ECDH%20secret%2C%20(3)%20compute%20SHA-256%20digest%20of%20the%20ECDH%20shared%20secret%20and%20(4)%20perform%26nbsp%3B%3CSPAN%3EAES-GCM-256%20data%20encryption%20with%20the%20computed%20digest%20using%20CAAM%20hardware%20acceleration%20for%20all%20the%204%20operations.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E(The%20file%20will%20later%20be%20decrypted%20on%20another%20device).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20referred%20to%20AN-12838%20(from%202020)%2C%20however%20it%20just%20shows%20generation%20of%20EC%20key%20pair%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eopenssl%20ecparam%20-engine%20devcrypto%20-genkey%20-out%20blackkey.pem%20-name%20prime256v1%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EWhat%20is%20the%20latest%26nbsp%3B%3CSPAN%3Erecommended%20way%20to%20use%20CAAM%20hardware%20acceleration%20for%20these%204%20operations%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E