DSAManaged Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9083)
Managed implementation of DSA signature algorithm.
Syntax
public class DSAManaged : DSA, IDisposable
Implements
Inherited Members
Remarks
The purpose of this class is to make it possible to verify signatures without the need to use CryptoAPI, which is not available in some scenarios.
Even though it is possible to generate DSA keys and sign data using this class, but this process has not been optimized for speed and is very slow.
Constructors
Name | Description |
---|---|
DSAManaged() | Initializes a new instance of the DSAManaged class with the key size of 1024. |
DSAManaged(Int32) | Initializes a new instance of the DSAManaged class with the specified key size. |
DSAManaged(Int32, Byte[]) | Initializes a new instance of the DSAManaged class with the specified key size and seed. |
Properties
Name | Description |
---|---|
KeyExchangeAlgorithm | Gets the name of the key exchange algorithm available with this implementation of DSA. |
SignatureAlgorithm | Gets the name of the signature algorithm available with this implementation of DSA. |
Methods
Name | Description |
---|---|
CreateSignature(Byte[]) | Creates the DSA signature for the specified data. |
Dispose(Boolean) | Releases the unmanaged resources and optionally releases the managed resources. |
ExportParameters(Boolean) | Exports the DSAParameters. |
FromXmlString(String) | When overridden in a derived class, reconstructs a DSAManaged object from an XML string. |
ImportParameters(DSAParameters) | Imports the specified DSAParameters. |
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[]) | Computes the signature for the specified hash value by signing it with the private key. |
ToXmlString(Boolean) | Creates and returns an XML string representation of the current object. |
VerifyData(Byte[], HashAlgorithm, Byte[]) | Verifies the specified signature data by comparing it to the signature computed for the specified data. |
VerifyHash(Byte[], Byte[]) | Verifies the specified signature data by comparing it to the signature computed for the specified hash value. |
VerifySignature(Byte[], Byte[]) | Verifies the DSA signature for the specified data. |