ISmimeCapability::ObjectId property

The ObjectId property retrieves the object identifier (OID) of the symmetric encryption algorithm.

This property is read-only.

Syntax


HRESULT get_ObjectId(
  [out] IObjectId **ppValue
);

Property value

Address of a variable that receives a pointer to an IObjectId interface that represents the OID.

Error codes

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

Call the Initialize method to specify the ObjectId property. The following encryption OIDs are currently supported:

  • XCN_OID_NIST_AES128_CBC (2.16.840.1.101.3.4.1.2)
  • XCN_OID_NIST_AES192_CBC (2.16.840.1.101.3.4.1.22)
  • XCN_OID_NIST_AES256_CBC (2.16.840.1.101.3.4.1.42)
  • XCN_OID_NIST_AES128_WRAP (2.16.840.1.101.3.4.1.5)
  • XCN_OID_NIST_AES192_WRAP (2.16.840.1.101.3.4.1.25)
  • XCN_OID_NIST_AES256_WRAP (2.16.840.1.101.3.4.1.45)
  • XCN_OID_OIWSEC_desCBC (1.3.14.3.2.7)
  • XCN_OID_RSA_DES_EDE3_CBC (1.2.840.113549.3.7)
  • XCN_OID_RSA_RC2CBC (1.2.840.113549.3.2)
  • XCN_OID_RSA_RC4 (1.2.840.113549.3.4)
  • XCN_OID_RSA_SMIMEalgCMS3DESwrap (1.2.840.113549.1.9.16.3.6)
  • XCN_OID_RSA_SMIMEalgCMSRC2wrap (1.2.840.113549.1.9.16.3.7)

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

 

 

Show: