CAAM : AES-ECB application...

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

CAAM : AES-ECB application...

1,200 Views
jumeyer
Contributor II

Hi all,

I'm new to IMX6.

I would like to develop a little application in c language which use the CAAM cryptographic hardware accelerator (CHA).

I've 2 main problem:

- I think I don't understand very well all concepts: job descriptor/trusted descriptor , job rings, shared descriptors, etc... :smileyconfused:

- I try to read some register (like MCFGR — Master Configuration Register for example) and it spawn an error.

I've read the Document Number: IMX6DQ6SDLSRM :

Security Reference Manual for i.MX6Dual, 6Quad, 6Solo, and 6DualLite Families of Applications Processors

but for beginning I would like a little application example. It's easier in order to understand the main idea.

As concerning the register reading,

I use this (simple) command in my c program :

#define reg32_read(addr)     *((volatile uint_32_t *) (addr))

and in my program, when I call :

reg32_read(0x02100004); //0x02100004 : Master Configuration Register address

the program return me :

[1] + stopped (signal)  ./caam_test

I don't understand the real problem.

Is it a right problem ?

Is their a register setting that I missed in order to read all registers?

How to read/write into register in order to use CHA of CAAM ?

Is there some code examples of AES ECB mode encryption using the CAAM ?

Please, could you help me please ? Any suggestions are welcome... :smileyhappy:

Thx

0 Kudos
4 Replies

823 Views
Yuri
NXP Employee
NXP Employee

  Please refer to


https://community.freescale.com/thread/338204#

Have a great day,
Yuri

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

823 Views
jumeyer
Contributor II

Hi Yuri,

thank you for indicate the right link.

(I did a mistake and published 2 times the same question... sorry everybody :smileyblush:

and because some people had already answered I don't want to delete one )

Have a nice day too.

Julien.

0 Kudos

823 Views
saurabh206
Senior Contributor III

Hi,

Send your post to imx community (e.g. i.MX Community ) to get it visible for active members.

Saurabh

823 Views
jumeyer
Contributor II

Hi,

thank you for your suggestion.

Julien.

0 Kudos