System.Security.Cryptography.Xml in a portable class library?

I use a licensing tool (Rhino.Licensing) that uses signed XML files as licenses.

Since the System.Security.Cryptography.Xml not available on varios platforms (e.g. MonoTouch and Mono for Android, etc.), it is not possible to verify the license and its signature.

Is there a way to read and verify signed XML files on a portable class class library?

I need this feature in .NET, Mono, MonoTouch, Mono for Android, WinRT, Silverlight, MonoGame

+4
source share
1 answer

AFAIK (too many profiles in PCL 2.0) System.Security.dll not included in any portable library profile.

  • .NET: part of the framework
  • Mono: part of the framework
  • MonoTouch: not in profile
  • Mono for Android: not in profile
  • WinRT: not sure
  • Silverlight: not in profile
  • MonoGame: not a profile - it will depend on which profile it uses.

the good news is that you can create your own using the Mono source code. For MonoTouch and Mono for Android, this will be pretty easy.

The only problem I can foresee is Silverlight, as it did not (the last time I checked) support for the RSA implementation and Mono BigInteger require unsafe code (which was also unacceptable in most cases). OTOH, and with a little more work, you can reimplement RSA using SL System.Numerics.dll .

+3
source

All Articles