SatExtractDigestFromSignature Method |
Extract message digest from the signature (sello) in an XML file.
Namespace: FirmaSATAssembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntaxpublic static string ExtractDigestFromSignature(
string xmlFile,
string certFile = ""
)
Public Shared Function ExtractDigestFromSignature (
xmlFile As String,
Optional certFile As String = ""
) As String
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
StringMessage digest in hex format or empty string on error
RemarksThis 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).
ExampleConsole.WriteLine(Sat.ExtractDigestFromSignature("cfdv40-ejemplo-signed-tfd.xml"));
See Also