SAHARA PRNG

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SAHARA PRNG

1,412 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,240 次查看
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 项奖励
回复