SEC 2.0 Reference Device Driver User’s Guide, Rev. 0
16 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE Freescale Semiconductor
Individual Request Type Descriptions
unsigned char *inCtxDat a;
unsigned long inBytes;
unsigned char *inData;
unsigned char *outData; /* output lengt h = input length */
unsigned long outCtxBy tes; /* 257 bytes */
unsigned char *outCtxDa ta;
NUM_RC4_LOADCTX_UNLOADCTX_DESC defines the number of descriptors within the
DPD_RC4_LDCTX_CRYPT_ULCTX_GROUP that use this request.
DPD_RC4_LDCTX_CRYPT_ULCTX_GROUP (0x3400) defines the group for all descriptors within this request.
4.3.2 ARC4_LOADKEY_CRYPT_UNLOADCTX_REQ
COMMON_REQ_PREAMBLE
unsigned long keyBytes ;
unsigned char *keyData;
unsigned long inBytes;
unsigned char *inData;
unsigned char *outData; /* output lengt h = input length */
unsigned long outCtxBy tes; /* 257 bytes */
unsigned char* outCtxDa ta;
NUM_RC4_LOADKEY_UNLOADCTX_DESC defines the number of descriptors within the
DPD_RC4_LDKEY_CRYPT_ULCTX_GROUP that use this request.
DPD_RC4_LDKEY_CRYPT_ULCTX_GROUP (0x3500) defines the group for all descriptors within this request.
Table 9. ARC4_LOADCTX_CRYPT_REQ Valid Descriptor (opId)
Descriptor Value Function Description
DPD_RC4_LDCTX_CRYPT_ULCTX 0x3400 Load context, encrypt using RC4, and store the
resulting context
Table10. ARC4_LOADKEY_CRYPT_UNLOADCTX_REQ Valid Descriptor (opId)
Descriptor Value Function Description
DPD_RC4_LDKEY_CRYPT_ULCTX 0x3500 Load the cipher key, encrypt using RC4 then save the
resulting context