CryptoSys PKI Toolkit Manual

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

Creates a CMS object of type SignedData from an input data file using user's private RSA key (advanced algorithms).

Syntax

[C#]
public static int MakeSigData(
	string outputFile,
	string inputFile,
	string certList,
	string privateKey,
	HashAlgorithm hashAlg,
	Cms.SigDataOptions advOptions
)
[VB.NET]
Public Shared Function MakeSigData ( _
	outputFile As String, _
	inputFile As String, _
	certList As String, _
	privateKey As String, _
	hashAlg As HashAlgorithm, _
	advOptions As Cms.SigDataOptions _
) As Integer

Parameters

outputFile
name of output file to be created
inputFile
name of file containing message data to be signed
certList
containing the filename of the signer's certificate and (optionally) a list of other certificates to be included in the output, separated by semi-colons(;)
privateKey
containing the private key data for the sender
hashAlg
Type: HashAlgorithm
Message digest algorithm to be used in signature [default=SHA-1]
advOptions
Type: Cms.SigDataOptions
Advanced option flags. See Cms.SigDataOptions.

Return Value

Zero if successful; otherwise it returns an error code

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: CMS_MakeSigData

[Contents] [Index]

[HOME]   [NEXT: Cms.QueryEnvData Method (String, String)...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.