System.Security.Cryptography.DSA Class

Represents the abstract base class from which all implementations of the Digital Signature Algorithm (System.Security.Cryptography.DSA) must inherit.

See Also: DSA Members


public abstract class DSA : AsymmetricAlgorithm


You can use the System.Security.Cryptography.DSA class and derived classes to create digital signatures that help protect the integrity of your data. The System.Security.Cryptography.DSACryptoServiceProvider provides an implementation of this class.

To use a public-key system to digitally sign a message, the sender first applies a hash function to the message to create a message digest. The sender then encrypts the message digest with the sender's private key to create the sender's personal signature. Upon receiving the message and signature, the receiver decrypts the signature using the sender's public key to recover the message digest and hashes the message using the same hash algorithm that the sender used. If the message digest that the receiver computes exactly matches the message digest received from the sender, the receiver can assume that the message was not altered while in transit. Note that a signature can be verified by anyone, because the sender's public key is common knowledge.

Newer asymmetric algorithms are available. Consider using the System.Security.Cryptography.RSA class, the System.Security.Cryptography.ECDSA class, or the System.Security.Cryptography.ECDiffieHellman class instead of the System.Security.Cryptography.DSA class. Use System.Security.Cryptography.DSA only for compatibility with legacy applications and data.

This algorithm supports key lengths from 512 bits to 1024 bits in increments of 64 bits.


Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,