Mono Class Library: System.Security.Cryptography Namespace

System.Security.Cryptography.RSACryptoServiceProvider Class

Managed implementation of the RSA asymmetric algorithm. [Edit]

See Also: RSACryptoServiceProvider Members

System.Object
     System.Security.Cryptography.AsymmetricAlgorithm
          System.Security.Cryptography.RSA
               System.Security.Cryptography.RSACryptoServiceProvider

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RSACryptoServiceProvider : RSA, ICspAsymmetricAlgorithm

Remarks

In Mono this class is completely implemented in managed code.

A major design difference between Mono and Microsoft implementation is the key generation. Microsoft always generate a new key pair in the constructor (unless a System.Security.Cryptography.CspParameters object is used with an non-empty container). This can degrade performance (e.g. server) when key pair are imported (e.g. XML) after the object is created. Mono implementation doesn't generate a new key pair until it is required (e.g. exporting, signing, encrypting ...). This shouldn't affect functionality but you may experience slowdown (during key pair generation) at a different time than MS implementation.

[Edit]

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0