User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 33
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.4.4 HASH_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;
unsigned long inBytes;
unsigned char* inData;
unsigned long outBytes; /* length is fixed by algorithm */
unsigned char* outData;
Dynamic channels are valid for this request. A channel value of zero is valid.
NUM_MDHA_DESC defines the number of descriptors within the DPD_HASH_LDCTX_HASH_ULCTX_GROUP
that use this request.
DPD_HASH_LDCTX_HASH_ULCTX_GROUP (0x4400) defines the group for all descriptors within this
request.
Table 24. HASH_REQ Valid Descriptors (0x4400) (opId)
Descriptors Value Function Description
DPD_SHA256_LDCTX_HASH_ULCTX 0x4400 Load context in a dynamic channel to using an
SHA-256 hash algorithm then get the resulting context
DPD_MD5_LDCTX_HASH_ULCTX 0x4401 Load context in a dynamic channel to using an MD5
hash algorithm then get the resulting context
DPD_SHA_LDCTX_HASH_ULCTX 0x4402 Load context in a dynamic channel to using an SHA-1
hash algorithm then get the resulting context
DPD_SHA256_LDCTX_IDGS_HASH_ULCTX 0x4403 Load context in a dynamic channel to using an
SHA-256 IDGS hash algorithm then get the resulting
context
DPD_MD5_LDCTX_IDGS_HASH_ULCTX 0x4404 Load context in a dynamic channel to using an MD5
IDGS hash algorithm then get the resulting context
DPD_SHA_LDCTX_IDGS_HASH_ULCTX 0x4405 Load context in a dynamic channel to using an SHA-1
IDGS hash algorithm then get the resulting context