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
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.
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!
-----------------------------------------------------------------------------------------------------------------------