User guide
MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 15
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.1 Random Number Generation Request Structures
The following section provides structure definitions for the random number generation process request.
4.6.1.1 RNG_REQ
unsigned long opId;
unsigned long channel;
PMPC18x_NOTIFY_ROUTINE notify;
PMPC18x_NOTIFY_CTX pNotifyCtx;
PMPC18x_NOTIFY_ON_ERROR_ROUTINE notify_on_error;
MPC18x_NOTIFY_ON_ERROR_CTX ctxNotifyOnErr;
int status;
void* nextReq;
unsigned long rngBytes;
unsigned char* rngData;
Dynamic channels are valid for this request. A channel value of zero is valid.
NUM_RNGA_DESC defines the number of descriptors within the DPD_RNG_GROUP that use this request.
DPD_RNG_GROUP (0x1000) defines the group for all descriptors within this request.
Table 6. RNG_REQ Valid Descriptor (opId)
Descriptor Value Function Description
DPD_RNG_GETRN 0x1000 Get random number










