IMX28 : use DCP engine to encrypt data using AES ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX28 : use DCP engine to encrypt data using AES ?

1,566件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

1,556件の閲覧回数
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 件の賞賛
返信