DSACryptoServiceProvider

DSACryptoServiceProvider


Provides a wrapper to access a DSA crypto service provider.


Implements:

AsymmetricAlgorithm 
DSA 
ICspAsymmetricAlgorithm 
IObject 

Public:

Properties:

NameDescription
 CspKeyContainerInfo (get) Returns a CspKeyContainerInfo object containing information about this DSACryptoServiceProvider instance.  
 KeyExchangeAlgorithm (get) Returns the name of the key exchange algorithm this instance represents.  
 KeySize (get) Returns the DSA key size in bits.  
 KeySize (let) Sets the key size.  
 LegalKeySizes (get) Returns an array of KeySizes objects defining the valid key sizes.  
 PersistKeyInCsp (get) Returns if the current key will be stored in the current provider container.  
 PersistKeyInCsp (let) Sets if the current key will be stored in the current provider container.  
 PublicOnly (get) Returns if the key for this DSA instance is only the public half of the key pair.  
 SignatureAlgorithm (get) Returns the signature algorithm.  

Methods:

NameDescription
 Clear Releases any resources and disposes the DSA instance.  
 CreateSignature Creates a new signature for the hash value.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 ExportCspBlob Exports the key information as a CryptoAPI PRIVATEKEYBLOB or PUBLICKEYBLOB structure.  
 ExportParameters Exports the DSA key parameters.  
 FromXmlString Imports a DSA key in the form of an XML string.  
 GetHashCode Returns a psuedo-unique number used to help identify this object in memory. The current method is to return the value obtained from ObjPtr. If a different method needs to be impelmented then change the method here in this function.

An override might be necessary if the hashcode should be derived from a value contained within the class.  

 ImportCspBlob Imports a CryptoAPI PRIVATEKEYBLOB or PUBLICKEYBLOB into the DSA provider.  
 ImportParameters Imports the DSA key parameters.  
 SignData Creates a signature for a Stream object or Byte array.  
 SignHash Creates a signature for a hash value.  
 ToString Returns a string representation of this object instance. The default method simply returns the application name and class name in which this class resides.

A Person class may return the persons name instead.  

 ToXmlString Exports the DSA key as an XML string.  
 VerifyData Verifies the signature for the specified data.  
 VerifyHash Verifies the signature for the specified hash value.  
 VerifySignature Verifies the signature for the hash value.  

Remarks

This class is used to create signatures for data and hashes and provide verification of those signatures generated.

See Also

Project CorLib Overview

Class DSACryptoServiceProvider Overview