Encrypt file with imx6 caam

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

Encrypt file with imx6 caam

1,071 Views
achestnov
Contributor I

Hi!


I  am looking for an example to encrypt and save a file with  individual aes key ( derived from internal imx6 key something similar)

It will be helpful if someone can point to some Documentations or Examples.

Here is a short description of the tasks I'm trying to achieve:

1. Encrypt a file and generate a blob:

    Eg: encrypt.sh -f fileToEncrypt -o Blobfile
2. Decrypt the blob to generate the file:

    Eg: decrypt.sh -i Blob  -o decryptedFile

Alternately:

encrypt.sh -i "TextToEncrypt" -o Blobfile
decrypt.sh -o Blobfile  > decryptedFile

My goal is to create an encrypted file which cannot be decrypted on any other CPU.
Goal. It's schould not possible to decrypt the File on other CPU.

Many Thanks,


PS: I can't use OpenSSL and I don't want to encrypt the whole Image, only one file.

0 Kudos
1 Reply

666 Views
Yuri
NXP Employee
NXP Employee

Hello,

  please look at the following

Example code on blob generation and usage on i.MX6UL platform 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos