Cryptographic Token Interface Standard

PKCS#11


RC4 mechanism

RC4, denoted CKM_RC4, is a mechanism for single- and multiple-part encryption and decryption based on RSA Security's proprietary stream cipher RC4.

It does not have a parameter.

Constraints on key types and the length of input and output data are summarized in the following table:

Table 78, RC4: Key And Data Length
Function Key type
Input length
Output length
Comments
C_Encrypt RC4
any
same as input length
no final part
C_Decrypt RC4
any
same as input length
no final part

For this mechanism, the ulMinKeySize and ulMaxKeySize fields of the CK_MECHANISM_INFO structure specify the supported range of RC4 key sizes, in bits.


RSA Security Inc. Public-Key Cryptography Standards - PKCS#11 - v220