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

SHA1 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.

SHA1Hash ( ) : System.Security.Cryptography

Initializes a new instance of the SHA1Hash 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
BigEndianToUInt32 ( byte bs, int off ) : uint
F ( uint u, uint v, uint w ) : uint
G ( uint u, uint v, uint w ) : uint
H ( uint u, uint v, uint w ) : uint
InternalInitialize ( ) : void
ProcessBlock ( ) : void
ProcessWord ( byte input, int inOff ) : void
UInt32ToBigEndian ( 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

SHA1Hash() public method

Initializes a new instance of the SHA1Hash class.
public SHA1Hash ( ) : System.Security.Cryptography
return System.Security.Cryptography