Hello
I wonder how i could verify an Xml file signed with dsig. (W3C)
Is there a way doing it with crypto++ or would you recommend another
library instead?
Moste of the examples are written in .net or use some microsoft libraries.
I'm working on linux and thus don't have any access to these.
Below a example i would like to Verify and of course i do know the public
key.
Regards, Adrian Stern
<?xml version="1.0" encoding="utf-8"?>
<LicenceContainer>
<LicenseData>
<modules>
<module id="0" />
<module id="1" />
<module id="2" />
<module id="3" />
<module id="4" />
<module id="5" />
<module id="6" />
<module id="7" />
<module id="8" />
<module id="9" />
<module id="10" />
<module id="11" />
<module id="12" />
<module id="13" />
<module id="14" />
<module id="15" />
<module id="16" />
<module id="17" />
</modules>
<Title>Demo License</Title>
<ID>428B6066-7E3D-41A4-990B-060D072FADCE</ID>
<ServerID>unspecified</ServerID>
<HardwareID>unspecified</HardwareID>
<Version>5.3</Version>
<ValidFrom>2013-05-21T11:50:56.661459+02:00</ValidFrom>
<ValidTill>3000-01-01T00:00:00</ValidTill>
<PingPeriodSec>3600</PingPeriodSec>
<Creator>Adrian Stern</Creator>
<Lictype>Undefined</Lictype>
<Created>2013-05-21T11:52:20.7758378+02:00</Created>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"
/>
<DigestValue>lxxJxsKqqarhRGaS7P/DtXya9vo=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>VBqQg+abjJPEzR6rPdltyRcCuL9H/qwmh6R0qdhkkUBLL1EuBH5WNwxgoHpXqFyMTavosc9jeZck4aTVKsB6waOYYyTalNpEqffoX99j7/SdyiZ21PEkMZNQ+ibdBwKpTJLvH4zAM3Wo6PG/NSN6OOHjGQmwm3csyC0ZFhrhexbZCssm8IRFTUK8IlYYWCiP+RNRepUNhKIVKF+1NWKs07E=</SignatureValue>
</Signature>
</LicenseData>
</LicenceContainer>
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.