CryptoSys PKI Pro Manual

Cms.MakeSigDataFromSigValue Method

Create a CMS object of type SignedData using a pre-computed signature (advanced algorithms).

Syntax

[C#]
public static int MakeSigDataFromSigValue(
	string outputFile,
	byte[] sigValue,
	byte[] contentData,
	string certList,
	HashAlgorithm hashAlg,
	Cms.SigDataOptions advOptions
)
[VB.NET]
Public Shared Function MakeSigDataFromSigValue ( _
	outputFile As String, _
	sigValue As Byte(), _
	contentData As Byte(), _
	certList As String, _
	hashAlg As HashAlgorithm, _
	advOptions As Cms.SigDataOptions _
) As Integer

Parameters

outputFile
name of output file to be created
sigValue
signature value
contentData
string containing content data that has been signed
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.
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

Remarks

RSASSA-PKCS1V1_5 only.

See Also

VB6/C equivalent: CMS_MakeSigDataFromSigValue

[Contents] [Index]

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

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