C# Class Goedel.Cryptography.CryptoProviderDigest

Base class for all cryptographic hash providers. Provides utility and convenience functions that are employed in derrived classes. This provides consistency when using either the built in .NET providers or those from other sources. Unlike the .NET API, the wrapper provider completely conceals the details of the cryptographic algorithm implementation. It is not necessary to observe block boundaries when using the TransformData methods.
Inheritance: CryptoProviderBulk
Show file Open project: hallambaker/Mathematical-Mesh

Public Properties

Property Type Description
HashAlgorithm System.Security.Cryptography.HashAlgorithm

Public Methods

Method Description
Initialize ( ) : void

Initializes or re-initializes an instance.

Process ( byte Buffer, int offset, int count ) : CryptoData

Computes the hash value for the specified region of the specified byte array

TransformFinal ( ) : CryptoData

Terminates a part processing session and returns the result.

Protected Methods

Method Description
CryptoProviderDigest ( ) : System

Default constructor.

CryptoProviderDigest ( HashAlgorithm HashAlgorithm ) : System

Initializes an instance of the hash provider with the specified implementation.

Method Details

CryptoProviderDigest() protected method

Default constructor.
protected CryptoProviderDigest ( ) : System
return System

CryptoProviderDigest() protected method

Initializes an instance of the hash provider with the specified implementation.
protected CryptoProviderDigest ( HashAlgorithm HashAlgorithm ) : System
HashAlgorithm System.Security.Cryptography.HashAlgorithm
return System

Initialize() public method

Initializes or re-initializes an instance.
public Initialize ( ) : void
return void

Process() public method

Computes the hash value for the specified region of the specified byte array
public Process ( byte Buffer, int offset, int count ) : CryptoData
Buffer byte The input to compute the hash code for.
offset int The offset into the byte array from which to begin using data.
count int The number of bytes in the array to use as data.
return CryptoData

TransformFinal() public method

Terminates a part processing session and returns the result.
public TransformFinal ( ) : CryptoData
return CryptoData

Property Details

HashAlgorithm public property

Hash algorithm provider.
public HashAlgorithm,System.Security.Cryptography HashAlgorithm
return System.Security.Cryptography.HashAlgorithm