Re: SignedXml fails under .NET 2.0 Beta

From: Gabriel (gfogante_at_gmail.com)
Date: 03/07/05


Date: 7 Mar 2005 03:24:15 -0800

In reality the code does not fail, CheckSignature method always
returns FALSE under .NET 2.0 Beta 1.

Please advice. Thanks in advance again.

gfogante@gmail.com (Gabriel) wrote in message news:<352db686.0503051334.436733fa@posting.google.com>...
> Hi,
>
> I'm using the following code to check signed xml files:
>
> SignedXml signedXml = new SignedXml();
> // http://support.microsoft.com/default.aspx?scid=KB;EN-US;322371
> CspParameters cspParams = new CspParameters();
> cspParams.Flags = CspProviderFlags.UseMachineKeyStore;
> RSACryptoServiceProvider rsaPublicKey = new
> RSACryptoServiceProvider(cspParams);
> rsaPublicKey.FromXmlString(xmlPublicKey);
> KeyInfo keyInfo = new KeyInfo();
> keyInfo.AddClause(new RSAKeyValue(rsaPublicKey));
> signedXml.KeyInfo = keyInfo;
>
> XmlNodeList nodeList = licenseData.GetElementsByTagName("Signature");
> signedXml.LoadXml((XmlElement)nodeList[0]);
>
> return signedXml.CheckSignature();
>
> This code works great under .NET 1.x and it FAILS under .NET 2.0 Beta.
> Do you know why?
> Thanks in advance.
>
> PS: xmlPublicKey contains the public key of course.



Relevant Pages

  • Re: Is Alias a troll?
    ... I am new here and still learning so I would like some advice on how to ... Notice alias doesn't know squat about windows. ... I don't use Windows Live Fail or Windows Fail and you will notice that I ... on dozens and dozens of Windows computers running XP. ...
    (microsoft.public.windows.vista.general)
  • Re: Is Alias a troll?
    ... I am new here and still learning so I would like some advice on how to block someone such as Alias. ... I don't use Windows Live Fail or Windows Fail and you will notice that I had a caveat that said "If it's anything like OE, ... I have seen this on dozens and dozens of Windows computers running XP. ...
    (microsoft.public.windows.vista.general)
  • Re: factoring integers on a classical computer in polynomial-time
    ... Your algorithm does not work. ... You fail to show that a solution for alpha, beta even exists in ... You fail to show that your method even halts. ...
    (comp.theory)
  • Re: factoring integers on a classical computer in polynomial-time
    ... Your algorithm does not work. ... You fail to show that a solution for alpha, beta even exists in ... You fail to show that your method even halts. ...
    (sci.math)
  • Re: Upgrade to 6.1 beta and (NG)
    ... do you have both 6.1 beta 2 and 6.02 installed on your machine? ... try to manually drag your 6.1 image on your 6.1 Dolphin.exe manually instead of just double clicking the image file and try to deploy. ... Why this fail? ...
    (comp.lang.smalltalk.dolphin)

Quantcast