AnsweredAssumed Answered

Encrypt file with imx6 caam

Question asked by Alexander Chestnov on May 22, 2017
Latest reply on May 23, 2017 by Yuri Muhin



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: -f fileToEncrypt -o Blobfile
2. Decrypt the blob to generate the file:


    Eg: -i Blob  -o decryptedFile


Alternately: -i "TextToEncrypt" -o Blobfile -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.