CryptoSys PKI Toolkit Manual

Cms.GetSigDataDigest Method (String, String, Boolean)

Extracts the message digest from a signed-data CMS object file and verifies the signature (legacy version)

Syntax

[C#]
public static string GetSigDataDigest(
	string inputFile,
	string certFile,
	bool inputIsBase64
)
[VB.NET]
Public Shared Function GetSigDataDigest ( _
	inputFile As String, _
	certFile As String, _
	inputIsBase64 As Boolean _
) As String

Parameters

inputFile
file containing CMS signed-data object
certFile
an (optional) X.509 certificate file to be used to identify the signer
inputIsBase64
[OBSOLETE: this parameter is ignored]

Return Value

Hash value in hex format or an empty string if error

Remarks

If no certificate is given, it will use the first valid SignerInfo and certificate pair it finds in the SignedData.

[Contents] [Index]

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

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