Question

Are there any available libraries in C language to verify XML signatures? I could only find one library for C++ from http://santuario.apache.org/cindex.html .

Was it helpful?

Solution

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

OTHER TIPS

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.

Christian

System.Security.Cryptography.Xml

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 http://msdn.microsoft.com/en-us/library/aa382384%28v=vs.85%29.aspx

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