[Mono-dev] Problems using SignedXML API
romydmisc at gmail.com
Mon Aug 14 16:02:30 EDT 2006
I'm using Sn utility to generata public private key pair and i use
API's from System.Security.Cryptography and
System.Security.Cryptography.Xml to sign the License file which is
just an xml file with some elements in it.
After signing, if i make any changes in signed xml file and if i try
to verify the file again it fails with .NET2.0 framework. But if i run
the same code and make changes in signed license file on mono, it
still verifies it fine.
Although if i make a change in length of the signature element, like
if i add or remove any character then mono runtime complains.
Are there some open issues in using SignedXML on mono or am i using
these API's correctly on mono?
Here's the code snippet:
#region RSA crypto service provider & load the signed XML
// Create an RSA crypto service provider from the embedded
// XML document resource (the public key).
RSACryptoServiceProvider csp = new RSACryptoServiceProvider();
// Load the signed XML license file.
XmlDocument xmldoc = new XmlDocument();
// Create the signed XML object & verify the signature.
SignedXml sxml = new SignedXml(xmldoc);
More information about the Mono-devel-list