User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 29
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.4 Hash Request Structures
The following sections provide structure definitions for hash requests.
4.6.4.1 HASH_LOADCTX_STATIC_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 ctxBytes;
unsigned char* ctxData;
Dynamic channels are not valid for this request. A channel value of zero is invalid.
NUM_MDHA_STATIC_LOADCTX_DESC defines the number of descriptors within the
DPD_HASH_SA_LDCTX_GROUP that use this request.
DPD_HASH_SA_LDCTX_GROUP (0x4000) defines the group for all descriptors within this request.
Table 20. HASH_LOADCTX_STATIC_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_SHA256_SA_LDCTX 0x4000 Load context in a static channel to using an SHA-256
hash algorithm
DPD_MD5_SA_LDCTX 0x4001 Load context in a static channel to using an MD5 hash
algorithm
DPD_SHA_SA_LDCTX 0x4002 Load context in a static channel to using an SHA-1 hash
algorithm