RSA Class
Represents the base class from which all implementations of the RSA algorithm inherit.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | RSA() | Initializes a new instance of the RSA class. |
| Name | Description | |
|---|---|---|
![]() | KeyExchangeAlgorithm | Gets the name of the key exchange algorithm available with this implementation of RSA. (Overrides AsymmetricAlgorithm::KeyExchangeAlgorithm.) |
![]() | KeySize | Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.(Inherited from AsymmetricAlgorithm.) |
![]() | LegalKeySizes | Gets the key sizes that are supported by the asymmetric algorithm.(Inherited from AsymmetricAlgorithm.) |
![]() | SignatureAlgorithm | Gets the name of the signature algorithm available with this implementation of RSA. (Overrides AsymmetricAlgorithm::SignatureAlgorithm.) |
| Name | Description | |
|---|---|---|
![]() | Clear() | Releases all resources used by the AsymmetricAlgorithm class.(Inherited from AsymmetricAlgorithm.) |
![]() ![]() | Create() | Creates an instance of the default implementation of the RSA algorithm. |
![]() ![]() | Create(String^) | Creates an instance of the specified implementation of RSA. |
![]() | Decrypt(array<Byte>^, RSAEncryptionPadding^) | When overridden in a derived class, decrypts the input data using the specified padding mode. |
![]() | DecryptValue(array<Byte>^) | When overridden in a derived class, decrypts the input data using the private key. |
![]() | Dispose() | Releases all resources used by the current instance of the AsymmetricAlgorithm class.(Inherited from AsymmetricAlgorithm.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources.(Inherited from AsymmetricAlgorithm.) |
![]() | Encrypt(array<Byte>^, RSAEncryptionPadding^) | When overridden in a derived class, encrypts the input data using the specified padding mode. |
![]() | EncryptValue(array<Byte>^) | When overridden in a derived class, encrypts the input data using the public key. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | ExportParameters(Boolean) | When overridden in a derived class, exports the RSAParameters. |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | FromXmlString(String^) | Initializes an RSA object from the key information from an XML string.(Overrides AsymmetricAlgorithm::FromXmlString(String^).) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | HashData(array<Byte>^, Int32, Int32, HashAlgorithmName) | When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm. |
![]() | HashData(Stream^, HashAlgorithmName) | When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm. |
![]() | ImportParameters(RSAParameters) | When overridden in a derived class, imports the specified RSAParameters. |
![]() | MemberwiseClone() | |
![]() | SignData(array<Byte>^, HashAlgorithmName, RSASignaturePadding^) | Computes the hash value of the specified byte array using the specified hash algorithm and padding mode, and signs the resulting hash value. |
![]() | SignData(array<Byte>^, Int32, Int32, HashAlgorithmName, RSASignaturePadding^) | Computes the hash value of a portion of the specified byte array using the specified hash algorithm and padding mode, and signs the resulting hash value. |
![]() | SignData(Stream^, HashAlgorithmName, RSASignaturePadding^) | Computes the hash value of the specified stream using the specified hash algorithm and padding mode, and signs the resulting hash value. |
![]() | SignHash(array<Byte>^, HashAlgorithmName, RSASignaturePadding^) | When overridden in a derived class, computes the signature for the specified hash value by encrypting it with the private key using the specified padding. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | ToXmlString(Boolean) | Creates and returns an XML string containing the key of the current RSA object.(Overrides AsymmetricAlgorithm::ToXmlString(Boolean).) |
![]() | VerifyData(array<Byte>^, array<Byte>^, HashAlgorithmName, RSASignaturePadding^) | Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and padding, and comparing it to the provided signature. |
![]() | VerifyData(array<Byte>^, Int32, Int32, array<Byte>^, HashAlgorithmName, RSASignaturePadding^) | Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and padding, and comparing it to the provided signature. |
![]() | VerifyData(Stream^, array<Byte>^, HashAlgorithmName, RSASignaturePadding^) | Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and padding, and comparing it to the provided signature. |
![]() | VerifyHash(array<Byte>^, array<Byte>^, HashAlgorithmName, RSASignaturePadding^) | Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value. |
| Name | Description | |
|---|---|---|
![]() | KeySizeValue | Represents the size, in bits, of the key modulus used by the asymmetric algorithm.(Inherited from AsymmetricAlgorithm.) |
![]() | LegalKeySizesValue | Specifies the key sizes that are supported by the asymmetric algorithm.(Inherited from AsymmetricAlgorithm.) |
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.
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




