Encrypt file with imx6 caam

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Encrypt file with imx6 caam

1,684 次查看
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.

标记 (3)
0 项奖励
回复
1 回复

1,279 次查看
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 项奖励
回复