CryptoSys PKI Pro Manual

Cms.MakeSigDataFromString(String, String, String, String, HashAlgorithm, Cms.SigDataOptions) Method

Create a CMS object of type SignedData from an input string using RSASSA-PKCS1V1_5 with options.

Syntax

[C#]
public static int MakeSigDataFromString(
   string outputFile,
   string inputData,
   string certList,
   string privateKey,
   HashAlgorithm hashAlg = HashAlgorithm.Sha1,
   Cms.SigDataOptions advOptions = Cms.SigDataOptions.Default 
)
[VB]
Public Shared Function MakeSigDataFromString (
   outputFile As String,
   inputData As String,
   certList As String,
   privateKey As String,
   Optional hashAlg As HashAlgorithm = HashAlgorithm.Sha1,
   Optional advOptions As Cms.SigDataOptions = Cms.SigDataOptions.Default 
) As Integer

Parameters

outputFile  String
name of output file to be created
inputData  String
string containing message data to be signed
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
hashAlg  HashAlgorithm  (Optional)
Message digest algorithm to be used in signature [default=SHA-1]
advOptions  Cms.SigDataOptions  (Optional)
Advanced option flags.

Return Value

Int32
Zero if successful; otherwise it returns an error code

Remarks

RSASSA-PKCS1V1_5 only.

See Also

VB6/C equivalent: CMS_MakeSigDataFromString

[Contents] [Index]

[PREV: Cms.MakeSigDataFromString(String, String, String, String, Cms.SigAlg, Cms.SigDataOptions) Method...]   [Contents]   [Index]   
   [NEXT: Cms.QueryEnvData Method...]

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