I filed bug #13214 (https://bugzilla.xamarin.com/show_bug.cgi?id=13214) for this issue, and I attached a simple program that reproduces the problem.
*Jonathan Gagnon* Responsable des architectures systèmes 600, boulevard Armand-Frappier, bureau 200 Laval (Québec) H7V 4B4 Canada T : 450-662-6101 poste 234 <http://www.croesus.com> <http://www.facebook.com/pages/Croesus-Finansoft/345020305606240><http://www.linkedin.com/company/croesus-finansoft?trk=hb_tab_compy_id_26141><https://twitter.com/CroesusFin> On Fri, Jul 12, 2013 at 10:02 AM, Jonathan Gagnon < jonathan.gag...@croesus.com> wrote: > Hi, > > I found a bug in the RSA.FromXmlString implementation in mono (3.0.10). > Whenever I try to use it with an xml string that contains a namespace, it > throws an exception. The same code works with .NET. > > Here's a little example : > > string rsakey = > "<RSAKeyValue><Modulus>sjanng8QA1Puw5S563eglnZgwlQOMcLgAZWHVmWVzAfUotsKc+9HhLpobPdjPsjdJE64Jbx/1oQdjMtx5z9ty+5dlW5fausb4UbFfLSH38Nci/k/qasHCphiuJMtqCYNBYvisf/2rUsj0d5nSxvNNtp37SRbIZ7bDFpmp53kAJU=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>"; > string dsrsakey = > "<ds:RSAKeyValue><ds:Modulus>sjanng8QA1Puw5S563eglnZgwlQOMcLgAZWHVmWVzAfUotsKc+9HhLpobPdjPsjdJE64Jbx/1oQdjMtx5z9ty+5dlW5fausb4UbFfLSH38Nci/k/qasHCphiuJMtqCYNBYvisf/2rUsj0d5nSxvNNtp37SRbIZ7bDFpmp53kAJU=</ds:Modulus><ds:Exponent>AQAB</ds:Exponent></ds:RSAKeyValue>"; > > RSA rsa = RSA.Create(); > > rsa.FromXmlString(rsakey); // works in .NET and mono > > rsa.FromXmlString(dsrsakey); // works in .NET, mono throws a > System.Security.Cryptography.CryptographicException > > > Should I file a bug report with this information? > > Jonathan > >
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list