ICertificateAttestationChallenge::DecryptChallenge method (certenroll.h)

Decrypts the challenge from the Certificate Management over CMS (CMC) response and creates a re-encrypted response to send to the CA.

Syntax

HRESULT DecryptChallenge(
  [in]          EncodingType Encoding,
  [out, retval] BSTR         *pstrEnvelopedPkcs7ReencryptedToCA
);

Parameters

[in] Encoding

An EncodingType enumeration value that specifies the type of Unicode-encoding applied to the attestation challenge. The default value is XCN_CRYPT_STRING_BASE64.

[out, retval] pstrEnvelopedPkcs7ReencryptedToCA

The decrypted challenge from the CMC response re-encrypted for the CA.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header certenroll.h
DLL Certenroll.dll

See also

ICertificateAttestationChallenge