Click or drag to resize

SatExtractDigestFromSignature Method

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

Namespace: FirmaSAT
Assembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntax
public static string ExtractDigestFromSignature(
	string xmlFile,
	string certFile = ""
)

Parameters

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

Return Value

String
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).
Example
C#
Console.WriteLine(Sat.ExtractDigestFromSignature("cfdv40-ejemplo-signed-tfd.xml"));
// 0FF1274E51FBB090489588D832BB1B5B36543302DECBB0A5490839B8C99E8755
See Also