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.