Export (0) Print
Expand All

RSACryptoServiceProvider Methods

The RSACryptoServiceProvider type exposes the following members.

  Name Description
Public method Clear Releases all resources used by the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm.)
Public method Decrypt Decrypts data with the RSA algorithm.
Public method DecryptValue This method is not supported in the current version. (Overrides RSA.DecryptValue(Byte[]).)
Public method Dispose() Releases all resources used by the current instance of the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm.)
Public method Encrypt Encrypts data with the RSA algorithm.
Public method EncryptValue This method is not supported in the current version. (Overrides RSA.EncryptValue(Byte[]).)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExportCspBlob Exports a blob containing the key information associated with an RSACryptoServiceProvider object.
Public method ExportParameters Exports the RSAParameters. (Overrides RSA.ExportParameters(Boolean).)
Public method FromXmlString Initializes an RSA object from the key information from an XML string. (Inherited from RSA.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ImportCspBlob Imports a blob that represents RSA key information.
Public method ImportParameters Imports the specified RSAParameters. (Overrides RSA.ImportParameters(RSAParameters).)
Public method SignData(Byte[], Object) Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.
Public method SignData(Stream, Object) Computes the hash value of the specified input stream using the specified hash algorithm, and signs the resulting hash value.
Public method SignData(Byte[], Int32, Int32, Object) Computes the hash value of a subset of the specified byte array using the specified hash algorithm, and signs the resulting hash value.
Public method SignHash Computes the signature for the specified hash value by encrypting it with the private key.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ToXmlString Creates and returns an XML string containing the key of the current RSA object. (Inherited from RSA.)
Public method VerifyData Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the hash value of the provided data.
Public method VerifyHash Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the provided hash value.
Top
Show:
© 2014 Microsoft