User guide
MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 39
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Global Definitions
4.6.7 Kasumi Request Structures
The following section provides structure definitions for Kasumi requests.
4.6.7.1 KEA_CRYPT_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 ivBytes; /* 0 or 8 bytes */
unsigned char* ivData;
unsigned long keyBytes; /* 8, 16, or 24 bytes */
unsigned char* keyData;
unsigned long inBytes; /* multiple of 8 bytes */
unsigned char* inData;
unsigned char* outData; /* output length = input length */
Dynamic channels are valid for this request. A channel value of zero is valid.
NUM_KEA_CRYPT_DESC defines the number of descriptors within the DPD_KEA_CRYPT_GROUP that use
this request.
DPD_KEA_CRYPT_GROUP (0xA000) defines the group for all descriptors within this request.
Table 30. KEA_CRYPT_REQ Valid Descriptors (opId)
Descriptors Value Function Description
DPD_KEA_f8_UPLINK_CRYPT 0xA000 Perform an f8 key exchange algorithm uplink
DPD_KEA_f8_DOWNLINK_CRYPT 0xA001 Perform an f8 key exchange algorithm downlink
DPD_KEA_f9_UPLINK_CRYPT 0xA002 Perform an f9 key exchange algorithm uplink
DPD_KEA_f9_DOWNLINK_CRYPT 0xA003 Perform an f9 key exchange algorithm downlink










