X509CertCmsDecrypt (FUN)¶
FUNCTION X509CertCmsDecrypt : RTS_IEC_RESULT
Decrypt a CMS container.
- InOut:
Scope
Name
Type
Comment
Return
X509CertCmsDecryptRTS_IEC_RESULTERR_OK if the container was successfully decrypted. ERR_PARAMETER if the given parameters are not consistent.
Input
hCertStoreRTS_IEC_HANDLEHandle to the certificate store.
hRecipientCertRTS_IEC_HANDLEHandle to the recipients certificate. A private key of the certificate has to be available. Though the certificate has to be located in the “own” store.
pCmsPOINTER TO RtsByteString
Pointer to a byte string storing the CMS container.
encodingRtsCertEncodingEncoding of the CMS container.
pOutDataPOINTER TO RtsByteString
Pointer to a byte string where to store the extracted data.