CryptoSys PKI Pro Manual

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]
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  String
name of output file to be created.
inputData  Byte
message data to be signed in a byte array.
certList  String
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  String
Private key data for the sender.
sigAlg  Cms.SigAlg
Signature algorithm.
advOptions  Cms.SigDataOptions
Advanced option flags.

Return Value

Int32
Zero if successful; otherwise it returns an error code

See Also

VB6/C equivalent: CMS_MakeSigDataFromBytes

[Contents] [Index]

[PREV: Cms.MakeSigData(String, String, String, String, HashAlgorithm, Cms.SigDataOptions) Method...]   [Contents]   [Index]   
   [NEXT: Cms.MakeSigDataFromPseudo Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.