Are there any available libraries in C language to verify XML signatures? I could only find one library for C++ from .

Was it helpful?


Here's one: XML Security Library (xmlsec) is a C library based on LibXML2


Besides the Apache XML Security suite, and XMLSec, you might check Microsoft's DCOM-based XML Signature implementation. For the Win7 web services stack, there is certainly also an XML Signature implementation but it seems not to be publicly exposed in the API.



SignedXml sx = new SignedXml((XmlElement)responseDocument.GetElementsByTagName("tns:CreateCertificateResponse")[0]); XmlNodeList nodeList = responseDocument.GetElementsByTagName("Signature"); foreach (XmlElement element in nodeList) { // Load the signature node. sx.LoadXml(element); sx.CheckSignature(bankSigningCertificate, true); }

This is how you can verify signature in c#. Use this library "System.Security.Cryptography.Xml"

For c go through following link

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow