User guide

MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 37
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.5.3 HMAC_PAD_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;
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_HMAC_PAD_DESC defines the number of descriptors within the
DPD_HASH_LDCTX_HMAC_ULCTX_GROUP that use this request.
DPD_HASH_LDCTX_HMAC_ULCTX_GROUP (0x4A00) defines the group for all descriptors within this
request.
Table 28. HMAC_PAD_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_SHA256_LDCTX_HMAC_ULCTX 0x4A00 Load context in a dynamic channel to using an
SHA-256 hash algorithm then get the resulting HMAC
context
DPD_MD5_LDCTX_HMAC_ULCTX 0x4A01 Load context in a dynamic channel to using an MD5
hash algorithm then get the resulting HMAC context
DPD_SHA_LDCTX_HMAC_ULCTX 0x4A02 Load context in a dynamic channel to using an SHA-1
hash algorithm then get the resulting HMAC context
DPD_SHA256_LDCTX_HMAC_PAD_ULCTX 0x4A03 Load context in a dynamic channel to using an
SHA-256 IDGS hash algorithm then get the resulting
padded HMAC context
DPD_MD5_LDCTX_HMAC_PAD_ULCTX 0x4A04 Load context in a dynamic channel to using an MD5
IDGS hash algorithm then get the resulting padded
HMAC context
DPD_SHA_LDCTX_HMAC_PAD_ULCTX 0x4A05 Load context in a dynamic channel to using an SHA-1
IDGS hash algorithm then get the resulting padded
HMAC context