RSA Class (System.Security.Cryptography)

Switch View :
ScriptFree
.NET Framework Class Library
RSA Class

Represents the base class from which all implementations of the RSA algorithm inherit.

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)

Syntax

Visual Basic (Declaration)
<ComVisibleAttribute(True)> _
Public MustInherit Class RSA
	Inherits AsymmetricAlgorithm
Visual Basic (Usage)
Dim instance As RSA

C#
[ComVisibleAttribute(true)] 
public abstract class RSA : AsymmetricAlgorithm
C++
[ComVisibleAttribute(true)] 
public ref class RSA abstract : public AsymmetricAlgorithm
J#
/** @attribute ComVisibleAttribute(true) */ 
public abstract class RSA extends AsymmetricAlgorithm
JScript
ComVisibleAttribute(true) 
public abstract class RSA extends AsymmetricAlgorithm
Remarks

Extending this class proves that you are implementing an RSA key. This is required for any developer providing a new RSA key implementation.

The only purpose of this class is as a hierarchy member for identification of the RSA algorithm.

The RSACryptoServiceProvider supports key lengths from 384 bits to 16384 bits in increments of 8 bits if you have the Microsoft Enhanced Cryptographic Provider installed. It supports key lengths from 384 bits to 512 bits in increments of 8 bits if you have the Microsoft Base Cryptographic Provider installed.

Inheritance Hierarchy

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0
See Also