CMSG_RC2_AUX_INFO

The CMSG_RC2_AUX_INFO structure contains auxiliary information for RC2 encryption algorithms. The pvEncryptionAuxInfo member in CMSG_ENVELOPED_ENCODE_INFO should be updated to point to this structure.

Note, this auxiliary information is only used when the ContentEncryptionAlgorithm's Parameters.cbData is zero. Otherwise, the Parameters member is decoded to get the bit length.

typedef struct _CMSG_RC2_AUX_INFO {
    DWORD                       cbSize;
    DWORD                       dwBitLen;
} CMSG_RC2_AUX_INFO, *PCMSG_RC2_AUX_INFO;
 

Members

cbSize
The count of bytes in this data structure.
dwBitLen
Specifies the RC2 effective key length. Currently 40 bit, 64 bit, and 128 bit lengths are supported. The value supplied is simply an DWORD with the integer value of 40, 64, or 128. (The values used here are not to be confused with the values used to specify the dwVersion in the CRYPT_RC2_CBC_PARAMETERS structure. The values used there for the defined constants that specify the length used are not the same as the length used.)

If the CMSG_SP3_COMPATIBLE_ENCRYPT_FLAG is set, SP3 compatible encryption is done and the default bit length is ignored.

See Also

CMSG_ENVELOPED_ENCODE_INFO, CRYPT_ALGORITHM_IDENTIFIER