ISmimeCapability::BitCount property

The BitCount property retrieves the length, in bits, of the encryption key.

This property is read-only.

Syntax


HRESULT get_BitCount(
  [out]  LONG *pValue
);

Property value

Pointer to a LONG variable that contains the length, in bits.

Error codes

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Name/valueMeaning
CERTSRV_E_PROPERTY_EMPTY

The property value could not be found.

Remarks

Call the Initialize method to specify the BitCount property. The following symmetric encryption algorithms and key lengths are supported by the Certificate Enrollment API.

OIDKey Length
XCN_OID_OIWSEC_desCBC

1.3.14.3.2.7

56
XCN_OID_RSA_DES_EDE3_CBC

1.2.840.113549.3.7

168
XCN_OID_RSA_RC2CBC

1.2.840.113549.3.2

40 to 128
XCN_OID_RSA_RC4

1.2.840.113549.3.4

40 to 128
XCN_OID_RSA_SMIMEalgCMS3DESwrap

1.2.840.113549.1.9.16.3.6

168
XCN_OID_RSA_SMIMEalgCMSRC2wrap

1.2.840.113549.1.9.16.3.7

128
XCN_OID_NIST_AES128_CBC

2.16.840.1.101.3.4.1.2

128
XCN_OID_NIST_AES192_CBC

2.16.840.1.101.3.4.1.22

192
XCN_OID_NIST_AES256_CBC

2.16.840.1.101.3.4.1.42

256
XCN_OID_NIST_AES128_WRAP

2.16.840.1.101.3.4.1.5

128
XCN_OID_NIST_AES192_WRAP

2.16.840.1.101.3.4.1.25

192
XCN_OID_NIST_AES256_WRAP

2.16.840.1.101.3.4.1.45

256

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

ISmimeCapability
ISmimeCapabilities
IX509ExtensionSmimeCapabilities

 

 

Community Additions

ADD
Show:
© 2014 Microsoft