RSAManaged Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9448)
Managed implementation of RSA algorithm.
Syntax
public class RSAManaged : RSA, IDisposable
Implements
Inherited Members
Constructors
| Name | Description |
|---|---|
| RSAManaged() | Initializes a new instance of the RSAManaged class with the key size of 1024. |
| RSAManaged(Int32) | Initializes a new instance of the RSAManaged class with the specified key size. |
Properties
| Name | Description |
|---|---|
| KeyExchangeAlgorithm | Gets the name of the key exchange algorithm available with this implementation of RSA. |
| SignatureAlgorithm | Gets the name of the signature algorithm available with this implementation of RSA. |
Methods
| Name | Description |
|---|---|
| Decrypt(Byte[]) | Decrypts data with the RSA algorithm. |
| DecryptRaw(Byte[]) | Decrypts data with the RSA algorithm. Replacement for deprecated DecryptValue(Byte[]) method. |
| DecryptValue(Byte[]) | Decrypts data with the RSA algorithm. |
| Dispose(Boolean) | Releases the unmanaged resources and optionally releases the managed resources. |
| Encrypt(Byte[]) | Encrypts data with the RSA algorithm. |
| EncryptRaw(Byte[]) | Decrypts data with the RSA algorithm. Replacement for deprecated EncryptValue(Byte[]) method. |
| EncryptValue(Byte[]) | Encrypts data with the RSA algorithm. |
| ExportParameters(Boolean) | Exports the RSAParameters. |
| ImportParameters(RSAParameters) | Imports the specified RSAParameters. |
| SignData(Byte[], HashAlgorithm) | Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value. |
| SignHash(Byte[], String) | Computes the signature for the specified hash value by signing it with the private key. |
| VerifyData(Byte[], HashAlgorithm, Byte[]) | Verifies the specified signature data by comparing it to the signature computed for the specified data. |
| VerifyHash(Byte[], String, Byte[]) | Verifies the specified signature data by comparing it to the signature computed for the specified hash value. |