CRYPT_RC2_CBC_PARAMETERS structure (wincrypt.h)
The CRYPT_RC2_CBC_PARAMETERS structure contains information used with szOID_RSA_RC2CBC encryption. It is used in calls to CryptEncodeObject, CryptEncodeObjectEx, CryptDecodeObject CryptDecodeObjectEx.
Syntax
typedef struct _CRYPT_RC2_CBC_PARAMETERS {
DWORD dwVersion;
BOOL fIV;
BYTE rgbIV[8];
} CRYPT_RC2_CBC_PARAMETERS, *PCRYPT_RC2_CBC_PARAMETERS;
Members
dwVersion
Specifies the key length. Current usable key lengths are 40, 64, and 128 bits.
Value | Meaning |
---|---|
|
40 bits |
|
56 bits |
|
64 bits |
|
128 bits |
fIV
Boolean specifying whether an 8-byte initialization vector (IV) is contained in rgbIV[8]. Set to TRUE when IV is present.
rgbIV[8]
Eight byte initialization vector. Can be NULL if fIV is FALSE. The IV is encoded as an OCTET_STRING.
CryptEncodeObject or CryptEncodeObjectEx with the dwCertEncodingType parameter set to X500_OCTET_STRING to create the encoded OCTET_STRING. The ContentEncryptionAlgorithm's Parameters BLOB is updated to point to this encoded OCTET_STRING.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | wincrypt.h |