SAHARA PRNG

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

SAHARA PRNG

513 Views
vbhat
Contributor I


Hi,

I'm trying to generate some random numbers using the SAHARA lite on iMX51. When I try to generate the random number, there is an error in the ERROR STATUS register with 'error source' set to 3. (invalid descriptor pointer / length).

The descriptor which I load looks like this :

Header --> Desc #18

Len1  -> Number of random bytes needed

Ptr1 --> Pointer to link node

Len2 --> 0

Ptr2  --> NULL

Next --> NULL.

Link Node :

len --> num of bytes needed

ptr --> pointer to the data buffer

next --> NULL

Is the descriptor format correct? There's no example in the security manual.

Thanks

Labels (1)
Tags (1)
0 Kudos
1 Reply

341 Views
Yuri
NXP Employee
NXP Employee

Hello,

  You may look at NXP Linux BSP, using it as an example.

In particular, please take a look at Chapter 23 [Symmetric/Asymmetric
Hashing and Random Accelerator (Sahara) Drivers] of "mx51_linux.pdf",

which describes main features of the driver and its sources.

http://www.nxp.com/webapp/Download?colCode=IMX51_ER1011_LINUXDOCS_BUNDLE&Parent_nodeId=1276656133953...

Summary page :

i.MX51 Software & Development Tool Resources|NXP

Have a great day,
Yuri

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

0 Kudos