This documentation is archived and is not being maintained.

RSACryptoServiceProvider Members

RSACryptoServiceProvider overview

Public Constructors

public constructorRSACryptoServiceProvider Constructor Overloaded. Initializes a new instance of the RSACryptoServiceProvider class.

Public Properties

public propertyKeyExchangeAlgorithm Overridden. Gets the name of the key exchange algorithm available with this implementation of RSA.
public propertyKeySize Overridden. Gets the size of the current key.
public propertyLegalKeySizes (inherited from AsymmetricAlgorithm) Gets the key sizes that are supported by the asymmetric algorithm.
public propertyPersistKeyInCsp Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).
public propertySignatureAlgorithm Overridden. Gets the name of the signature algorithm available with this implementation of RSA.
public propertystatic (Shared in Visual Basic)UseMachineKeyStore Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.

Public Methods

public methodClear (inherited from AsymmetricAlgorithm) Releases all resources used by the AsymmetricAlgorithm.
public methodDecrypt Decrypts data with the RSA algorithm.
public methodDecryptValue Overridden. This method is not supported in the current version.
public methodEncrypt Encrypts data with the RSA algorithm.
public methodEncryptValue Overridden. This method is not supported in the current version.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodExportParameters Overridden. Exports the RSAParameters.
public methodFromXmlString (inherited from RSA) Overridden. Reconstructs an RSA object from an XML string.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodImportParameters Overridden. Imports the specified RSAParameters.
public methodSignData Overloaded. Computes the hash value of the specified data and signs it.
public methodSignHash Computes the signature for the specified hash value by encrypting it with the private key.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodToXmlString (inherited from RSA) Overridden. Creates and returns an XML string representation of the current RSA object.
public methodVerifyData Verifies the specified signature data by comparing it to the signature computed for the specified data.
public methodVerifyHash Verifies the specified signature data by comparing it to the signature computed for the specified hash value.

Protected Fields

protected fieldKeySizeValue (inherited from AsymmetricAlgorithm) Represents the size of the key modulus used by the asymmetric algorithm in bits.
protected fieldLegalKeySizesValue (inherited from AsymmetricAlgorithm) Specifies the key sizes that are supported by the asymmetric algorithm.

Protected Methods

protected methodDispose Overridden. Releases the unmanaged resources used by the RSACryptoServiceProvider and optionally releases the managed resources.
protected methodFinalize Overridden. Releases the unmanaged resources used by the RSACryptoServiceProvider.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

RSACryptoServiceProvider Class | System.Security.Cryptography Namespace

Show: