C# Class Renci.SshNet.Security.Cryptography.SHA256Hash

SHA256 algorithm implementation.
Inheritance: System.Security.Cryptography.HashAlgorithm
Show file Open project: ElanHasson/SSIS-Extensions Class Usage Examples

Public Methods

Method Description
Initialize ( ) : void

Initializes an implementation of the T:System.Security.Cryptography.HashAlgorithm class.

SHA256Hash ( ) : System

Initializes a new instance of the SHA1 class.

Protected Methods

Method Description
HashCore ( byte array, int ibStart, int cbSize ) : void

Routes data written to the object into the hash algorithm for computing the hash.

HashFinal ( ) : byte[]

Finalizes the hash computation after the last data is processed by the cryptographic stream object.

Private Methods

Method Description
BE_To_UInt32 ( byte bs, int off ) : uint
InternalInitialize ( ) : void
ProcessBlock ( ) : void
ProcessLength ( long bitLength ) : void
ProcessWord ( byte input, int inOff ) : void
Sum0Maj ( uint x, uint y, uint z ) : uint
Sum1Ch ( uint x, uint y, uint z ) : uint
Theta0 ( uint x ) : uint
Theta1 ( uint x ) : uint
UInt32_To_BE ( uint n, byte bs, int off ) : void
Update ( byte input ) : void

Method Details

HashCore() protected method

Routes data written to the object into the hash algorithm for computing the hash.
protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte The input to compute the hash code for.
ibStart int The offset into the byte array from which to begin using data.
cbSize int The number of bytes in the byte array to use as data.
return void

HashFinal() protected method

Finalizes the hash computation after the last data is processed by the cryptographic stream object.
protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

Initializes an implementation of the T:System.Security.Cryptography.HashAlgorithm class.
public Initialize ( ) : void
return void

SHA256Hash() public method

Initializes a new instance of the SHA1 class.
public SHA256Hash ( ) : System
return System