CryptoSys PKI Pro Manual

Cms.MakeDetachedSig Method

Create a "detached signature" CMS signed-data object file from a message digest of the content (advanced algorithms).

Syntax

[C#]
public static int MakeDetachedSig(
	string outputFile,
	string hexDigest,
	string certList,
	string privateKey,
	HashAlgorithm hashAlg,
	Cms.SigDataOptions advOptions
)
[VB.NET]
Public Shared Function MakeDetachedSig ( _
	outputFile As String, _
	hexDigest 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
hexDigest
string containing message digest in hex format
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.
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_MakeDetachedSig

[Contents] [Index]

[PREV: Cms.MakeComprData Method...]   [Contents]   [Index]   
   [NEXT: Cms.MakeEnvData Method (String, String, String, CipherAlgorithm, Cms.EnvDataOptions)...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-01T11:51:59Z.