AsymmetricKeyAlgorithm Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)
A platform-independent asymmetric algorithm object.
Syntax
public class AsymmetricKeyAlgorithm : IDisposable
Implements
Inherited Members
Constructors
Name | Description |
---|---|
Asymmetric |
Creates an instance of Asymmetric |
Properties
Name | Description |
---|---|
Algorithm | Gets the current key algorithm. |
Key |
Gets the current key size. |
Public |
Gets a value indicating whether this instance only contains the public key. |
Methods
Name | Description |
---|---|
Create |
Creates an instance of Asymmetric |
Decrypt(Byte[]) | Decrypts data. |
Decrypt(Byte[], Encryption |
Decrypts data. |
Dispose() | Frees the resources used by this object. |
Encrypt(Byte[]) | Encrypts data. |
Encrypt(Byte[], Encryption |
Encrypts data. |
Generate |
Generates Diffie-Hellman parameters corresponding to the specified key size. |
Generate |
Generates a private key for the specified asymmetric algorithm with of the specified key size. |
Generate |
Generates a private key for the specified asymmetric algorithm based on the specified curve. |
Get |
Gets CSP parameters if the instance of Asymmetric |
Get |
Gets key material deriver. Only supported by Diffie-Hellman-like algorithms. |
Get |
Exports a private key to the specified private key info object. |
Get |
Exports a public key to the specified private key info object. |
Import |
Imports a private key for the specified algorithm/curve. Only some algorithms/curves are supported. |
Import |
Imports a private key from the specified Diffie-Hellman parameters, or generates a new key using P and G parameters. |
Import |
Imports a key from the specified private key info object. |
Import |
Imports a key from the specified public key info object. |
Import |
Imports a key from the specified DSA parameters. |
Import |
Imports a key from the specified RSA parameters. |
Is |
Returns a value indicating whether the specified algorithm is supported. |
Register(Func<String, Object>) | Register custom asymmetric key algorithm. |
Sign |
Computes the signature for the specified hash value. |
Sign |
Computes the signature for the specified message (using default parameters). |
Sign |
Computes the signature for the specified message. |
Verify |
Verifies the specified signature. |
Verify |
Verifies the specified signature (using default parameters). |
Verify |
Verifies the specified signature. |