User guide
30 MPC184/MPC185 Security Co-Processor Software User’s Guide MOTOROLA
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions Global Definitions
4.6.4.2 HASH_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 inBytes;
unsigned char* inData;
Dynamic channels are not valid for this request. A channel value of zero is invalid.
NUM_MDHA_STATIC_DESC defines the number of descriptors within the DPD_HASH_SA_HASH_GROUP that
use this request.
DPD_HASH_SA_HASH_GROUP (0x4100) defines the group for all descriptors within this request.
Table 21. HASH_STATIC_REQ Valid Descriptors (0x4100) (opId)
Descriptors Value Function Description
DPD_SHA256_SA_HASH 0x4100 Execute SHA-256 hash algorithm on the loaded context
of a static channel
DPD_MD5_SA_HASH 0x4101 Execute MD5 hash algorithm on the loaded context of
a static channel
DPD_SHA_SA_HASH 0x4102 Execute SHA-1 hash algorithm on the loaded context of
a static channel
DPD_SHA256_SA_IDGS_HASH 0x4103 Execute SHA-256 IDGS hash algorithm on the loaded
context of a static channel
DPD_MD5_SA_IDGS_HASH 0x4104 Execute MD5 IDGS hash algorithm on the loaded
context of a static channel
DPD_SHA_SA_IDGS_HASH 0x4105 Execute SHA-1 IDGS hash algorithm on the loaded
context of a static channel










