User guide

36 MPC184/MPC185 Security Co-Processor Software User’s Guide MOTOROLA
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions Global Definitions
4.6.5.2 HMAC_PAD_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 keyBytes;
unsigned char* keyData;
unsigned long inBytes;
unsigned char* inData;
Dynamic channels are not valid for this request. A channel value of zero is invalid.
NUM_HMAC_STATIC_PAD_HASH_DESC defines the number of descriptors within the
DPD_HMAC_SA_PAD_HASH_GROUP that use this request.
DPD_HMAC_SA_PAD_HASH_GROUP (0x4700) defines the group for all descriptors within this request.
Table 27. HMAC_PAD_HASH_STATIC_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_HMAC_SA_SHA256_PAD_HASH 0x4700 Perform a HMAC operation on a static channel to using
an SHA-256 hash algorithm with padding
DPD_HMAC_SA_MD5_PAD_HASH 0x4701 Perform a HMAC operation on a static channel to using
an MD5 hash algorithm with padding
DPD_HMAC_SA_SHA_PAD_HASH 0x4702 Perform a HMAC operation on a static channel to using
an SHA-1 hash algorithm with padding
DPD_HMAC_SA_SHA256_PAD_IDGS_HASH 0x4703 Perform a HMAC operation on a static channel to using
an SHA-256 hash algorithm with IDGS padding
DPD_HMAC_SA_MD5_PAD_IDGS_HASH 0x4704 Perform a HMAC operation on a static channel to using
an MD5 hash algorithm with IDGS padding
DPD_HMAC_SA_SHA_PAD_IDGS_HASH 0x4705 Perform a HMAC operation on a static channel to using
an SHA-1 hash algorithm with IDGS padding