C# Class System.Security.Cryptography.HashAlgorithm

Inheritance: IDisposable, ICryptoTransform
Mostra file Open project: dotnet/corefx Class Usage Examples

Protected Properties

Property Type Description
HashValue byte[]
State int

Public Methods

Method Description
Clear ( ) : void
ComputeHash ( Stream inputStream ) : byte[]
ComputeHash ( byte buffer ) : byte[]
ComputeHash ( byte buffer, int offset, int count ) : byte[]
Create ( ) : HashAlgorithm
Create ( string hashName ) : HashAlgorithm
Dispose ( ) : void
Initialize ( ) : void
TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]

Protected Methods

Method Description
Dispose ( bool disposing ) : void
HashAlgorithm ( ) : System.IO
HashCore ( byte array, int ibStart, int cbSize ) : void
HashFinal ( ) : byte[]

Private Methods

Method Description
CaptureHashCodeAndReinitialize ( ) : byte[]
ValidateTransformBlock ( byte inputBuffer, int inputOffset, int inputCount ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

ComputeHash() public method

public ComputeHash ( Stream inputStream ) : byte[]
inputStream System.IO.Stream
return byte[]

ComputeHash() public method

public ComputeHash ( byte buffer ) : byte[]
buffer byte
return byte[]

ComputeHash() public method

public ComputeHash ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
return byte[]

Create() public static method

public static Create ( ) : HashAlgorithm
return HashAlgorithm

Create() public static method

public static Create ( string hashName ) : HashAlgorithm
hashName string
return HashAlgorithm

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

HashAlgorithm() protected method

protected HashAlgorithm ( ) : System.IO
return System.IO

HashCore() protected abstract method

protected abstract HashCore ( byte array, int ibStart, int cbSize ) : void
array byte
ibStart int
cbSize int
return void

HashFinal() protected abstract method

protected abstract HashFinal ( ) : byte[]
return byte[]

Initialize() public abstract method

public abstract Initialize ( ) : void
return void

TransformBlock() public method

public TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
inputBuffer byte
inputOffset int
inputCount int
outputBuffer byte
outputOffset int
return int

TransformFinalBlock() public method

public TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]
inputBuffer byte
inputOffset int
inputCount int
return byte[]

Property Details

HashValue protected_oe property

protected byte[] HashValue
return byte[]

State protected_oe property

protected int State
return int