2 arc4_loadkey_crypt_unloadctx_req – Freescale Semiconductor SEC2SWUG User Manual
Page 16

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 *inCtxData;
unsigned long inBytes;
unsigned char *inData;
unsigned char *outData; /* output length = input length */
unsigned long outCtxBytes; /* 257 bytes */
unsigned char *outCtxData;
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 length = input length */
unsigned long outCtxBytes; /* 257 bytes */
unsigned char* outCtxData;
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
Table 10. 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