PC Review


Reply
Thread Tools Rate Thread

XML digital signature in CF?

 
 
Tomppa
Guest
Posts: n/a
 
      30th Jun 2006
Can I do this in CF with some other namespace?

static bool VerifyXmlDocument(RSA key, XmlDocument doc)

{

SignedXml sxml = new SignedXml(doc);

try

{

// Find signature node

XmlNode sig = doc.GetElementsByTagName("Signature",
SignedXml.XmlDsigNamespaceUrl)[0];

sxml.LoadXml((XmlElement)sig);

}

catch

{

// Not signed!

return false;

}

return sxml.CheckSignature(key);

}


 
Reply With Quote
 
 
 
 
Alex Yakhnin
Guest
Posts: n/a
 
      2nd Jul 2006
The CF doesn't support that. You will need to implement the similar
functionality by yourself.

--
Alex Yakhnin, Device Applicatoin Developer MVP
http://www.opennetcf.com

"Tomppa" <(E-Mail Removed)> wrote in message
news:%23omv41%(E-Mail Removed)...
> Can I do this in CF with some other namespace?
>
> static bool VerifyXmlDocument(RSA key, XmlDocument doc)
>
> {
>
> SignedXml sxml = new SignedXml(doc);
>
> try
>
> {
>
> // Find signature node
>
> XmlNode sig = doc.GetElementsByTagName("Signature",
> SignedXml.XmlDsigNamespaceUrl)[0];
>
> sxml.LoadXml((XmlElement)sig);
>
> }
>
> catch
>
> {
>
> // Not signed!
>
> return false;
>
> }
>
> return sxml.CheckSignature(key);
>
> }
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Signature klafert Microsoft Outlook Discussion 2 21st Jan 2010 10:57 PM
Showing/Printing the signature "Comments" on a digital signature. Noelle Microsoft Word Document Management 0 21st Oct 2009 07:56 AM
signature verification missing (digital Signature) on the Vista =?Utf-8?B?dmVyaWZ5?= Windows Vista Security 3 11th Jul 2007 07:38 PM
Digital Signature =?Utf-8?B?U3RlcGg=?= Microsoft Outlook VBA Programming 1 28th Dec 2004 02:28 AM
Digital Signature =?Utf-8?B?S2ltIEggTWFkc2Vu?= Microsoft Dot NET 3 8th Jun 2004 11:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:05 AM.