CryptoSys PKI Pro Manual

cmsMakeSigDataFromSigValue

Create a CMS signed-data object using a pre-computed signature value.

Syntax

[VBA]
Public Function cmsMakeSigDataFromSigValue ( _
    szFileOut As String, _
    lpSigValue() As Byte, _
    lpInput() As Byte, _
    szCertList As String, _
    Optional nOptions As Long = 0 _
) As Long

Parameters

szFileOut
Name of output file to be created.
lpSigValue
Pre-computed signature value in byte array.
lpInput
Input data.
szCertList
Filename of the signer's certificate (or a string with its base64 or PEM representation) and (optionally) a list of other certificates to be included in the output, separated by semi-colons (;) Alternatively, specify a single PKCS#7 certificate chain file (.p7c/.p7b) containing the signer's certificate.
nOptions
Select the signature algorithm from one of:
PKI_SIG_RSA_SHA1
PKI_SIG_RSA_SHA224
PKI_SIG_RSA_SHA256
PKI_SIG_RSA_SHA384
PKI_SIG_RSA_SHA512
PKI_SIG_RSA_MD5
and optionally add any of the following:
PKI_CMS_EXCLUDE_CERTS
PKI_CMS_FORMAT_BASE64
PKI_CMS_NO_OUTER
PKI_CMS_ALT_ALGID
PKI_CMS_PSEUDOSIG

Return Value

Long: Zero on success else a nonzero error code.

Remarks

Specialised option for a specific case where the RSA v1.5 signature value over the content has been computed separately. RSASSA-PKCS-v1_5 only.
[PREV: cmsMakeSigDataFromBytes...]   [Contents]   [Index]   
   [NEXT: cmsMakeSigDataFromString...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.