DSACryptoServiceProvider

DSACryptoServiceProvider


Provides a wrapper to access a DSA crypto service provider.


Remarks

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

See Also

Project VBCorLib Overview

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
 ClearReleases any resources and disposes the DSA instance. 
 CreateSignatureCreates a new signature for the hash value. 
 EqualsReturns a boolean indicating if the value and this object instance are the same instance. 
 ExportCspBlobExports the key information as a CryptoAPI PRIVATEKEYBLOB or PUBLICKEYBLOB structure. 
 ExportParametersExports the DSA key parameters. 
 FromXmlStringImports a DSA key in the form of an XML string. 
 GetHashCodeReturns 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. 
 ImportCspBlobImports a CryptoAPI PRIVATEKEYBLOB or PUBLICKEYBLOB into the DSA provider. 
 ImportParametersImports the DSA key parameters. 
 SignDataCreates a signature for a Stream object or Byte array. 
 SignHashCreates a signature for a hash value. 
 ToStringReturns 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. 
 ToXmlStringExports the DSA key as an XML string. 
 VerifyDataVerifies the signature for the specified data. 
 VerifyHashVerifies the signature for the specified hash value. 
 VerifySignatureVerifies the signature for the hash value.