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

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

Protected Properties

Property Type Description
H1 ulong

Public Methods

Method Description
Initialize ( ) : void
SHA2HashBase ( ) : System

Initializes a new instance of the SHA512Hash class.

Protected Methods

Method Description
BE_To_UInt32 ( byte bs ) : uint
BE_To_UInt32 ( byte bs, int off ) : uint
BE_To_UInt64 ( byte bs ) : ulong
BE_To_UInt64 ( byte bs, int off ) : ulong
Finish ( ) : void
HashCore ( byte array, int ibStart, int cbSize ) : void
UInt32_To_BE ( uint n, byte bs, int off ) : void
UInt64_To_BE ( ulong n, byte bs, int off ) : void

Private Methods

Method Description
AdjustByteCounts ( ) : void

Adjust the byte counts so that byteCount2 represents the upper long (less 3 bits) word of the byte count.

Ch ( ulong x, ulong y, ulong z ) : ulong
Maj ( ulong x, ulong y, ulong z ) : ulong
ProcessBlock ( ) : void
ProcessLength ( long lowW, long hiW ) : void
ProcessWord ( byte input, int inOff ) : void
Sigma0 ( ulong x ) : ulong
Sigma1 ( ulong x ) : ulong
Sum0 ( ulong x ) : ulong
Sum1 ( ulong x ) : ulong
Update ( byte input ) : void

Method Details

BE_To_UInt32() protected static method

protected static BE_To_UInt32 ( byte bs ) : uint
bs byte
return uint

BE_To_UInt32() protected static method

protected static BE_To_UInt32 ( byte bs, int off ) : uint
bs byte
off int
return uint

BE_To_UInt64() protected static method

protected static BE_To_UInt64 ( byte bs ) : ulong
bs byte
return ulong

BE_To_UInt64() protected static method

protected static BE_To_UInt64 ( byte bs, int off ) : ulong
bs byte
off int
return ulong

Finish() protected method

protected Finish ( ) : void
return void

HashCore() protected method

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

Initialize() public method

public Initialize ( ) : void
return void

SHA2HashBase() public method

Initializes a new instance of the SHA512Hash class.
public SHA2HashBase ( ) : System
return System

UInt32_To_BE() protected static method

protected static UInt32_To_BE ( uint n, byte bs, int off ) : void
n uint
bs byte
off int
return void

UInt64_To_BE() protected static method

protected static UInt64_To_BE ( ulong n, byte bs, int off ) : void
n ulong
bs byte
off int
return void

Property Details

H1 protected property

protected ulong H1
return ulong