IMX28 : use DCP engine to encrypt data using AES ?

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

IMX28 : use DCP engine to encrypt data using AES ?

859 Views
g__
Contributor II

I installed the DCP driver into buildroot.

Is it possible to use the DCP engine of the IMX28 to encrypt data ?

If yes, do you have  a code example ?

Thanks

Best

Labels (1)
0 Kudos
1 Reply

849 Views
igorpadykov
NXP Employee
NXP Employee

Hi g__

 

one can look at below dcp example:

https://source.codeaurora.org/external/imx/imx-optee-os/tree/core/drivers/imx/dcp/dcp.c?h=imx_5.4.47...

also one can consider cryptodev-linux/test:

https://github.com/cryptodev-linux/cryptodev-linux

Some customers tested on i.MX6ULL board, which has the same DCP module.

In Kernel Configuration, you need exclude below option (default <Y>):

Cryptographic API ---> Disable run-time self tests

The result is shown below when insert the tcrypt.ko module:

# insmod tcrypt.ko mode=10

insmod: ERROR: could not insert module tcrypt.ko: Resource temporarily unavailable

# cat /proc/interrupts

...

236:         72       GPC  46 Level     dcp-vmi-irq
237:          2       GPC  47 Level     dcp-irq

 

Best regards
igor

0 Kudos