Cms.MakeSigDataFromBytes Method
Create a CMS object of type SignedData from an array of bytes.
Syntax
[C#]
public static int MakeSigDataFromBytes(
string outputFile,
byte[] inputData,
string certList,
string privateKey,
Cms.SigAlg sigAlg,
Cms.SigDataOptions advOptions
)
[VB.NET]
Public Shared Function MakeSigDataFromBytes ( _
outputFile As String, _
inputData As Byte(), _
certList As String, _
privateKey As String, _
sigAlg As Cms.SigAlg, _
advOptions As Cms.SigDataOptions _
) As Integer
Parameters
- outputFile
- name of output file to be created.
- inputData
- message data to be signed in a byte array.
- certList
- filename of the signer's certificate 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.
- privateKey
- Private key data for the sender.
- sigAlg
- Type: Cms.SigAlg
Signature algorithm.
- advOptions
- Type: Cms.SigDataOptions
Advanced option flags. See Cms.SigDataOptions.
Return Value
Zero if successful; otherwise it returns an
error code
See Also
VB6/C equivalent: CMS_MakeSigDataFromBytes
[Contents] [Index]