XML digital signature in CF?

  • Thread starter Thread starter Tomppa
  • Start date Start date
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);

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