CryptoSys PKI Toolkit Manual
Cms.MakeDetachedSig Method
Creates a "detached signature" CMS signed-data object file from a message digest of the content
Syntax
[C#]
public static int MakeDetachedSig(
string outputFile,
string hexDigest,
string certList,
string privateKey,
Cms.Options options
)
[VB.NET]
Public Shared Function MakeDetachedSig ( _
outputFile As String, _
hexDigest As String, _
certList As String, _
privateKey As String, _
options As Cms.Options _
) As Integer
Parameters
- outputFile
- name of output file to be created
- hexDigest
- string containing message digest in hex format
- 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
- options
- Option flags. See Cms.Options.
Return Value
Zero if successful; otherwise it returns an error code
[Contents] [Index]