Extract message digest from the signature (sello) in an XML file.

Namespace:  FirmaSAT
Assembly:  diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.50.0.29531

Syntax

C#
public static string ExtractDigestFromSignature(
	string xmlFile,
	string certFile
)
Visual Basic (Declaration)
Public Shared Function ExtractDigestFromSignature ( _
	xmlFile As String, _
	certFile As String _
) As String

Parameters

xmlFile
Type: System..::.String
Name of input XML file to be processed (or a string containing XML data)
certFile
Type: System..::.String
X.509 certificate file (optional) to override embedded Certificado node.

Return Value

Message digest in hex format or empty string on error

Remarks

This is the actual digest value computed over the original document and used to sign it. To re-compute the digest value over the current document, use MakeDigestFromXml(String).

Examples

CopyC#
Console.WriteLine(Sat.ExtractDigestFromSignature("cfdv40-ejemplo-signed-tfd.xml"));
// 0FF1274E51FBB090489588D832BB1B5B36543302DECBB0A5490839B8C99E8755

See Also