XML digital signature in CF?

T

Tomppa

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);

}
 
A

Alex Yakhnin

The CF doesn't support that. You will need to implement the similar
functionality by yourself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top