C# 클래스 Classless.Hasher.CRC

Computes the CRC hash for the input data using the managed library.
상속: System.Security.Cryptography.HashAlgorithm
파일 보기 프로젝트 열기: codebutler/meshwork

공개 메소드들

메소드 설명
CRC ( CRCParameters param ) : System

Initializes a new instance of the CRC class.

Initialize ( ) : void

Initializes the algorithm.

보호된 메소드들

메소드 설명
HashCore ( byte array, int ibStart, int cbSize ) : void

Drives the hashing function.

HashFinal ( ) : byte[]

Performs any final activities required by the hash algorithm.

비공개 메소드들

메소드 설명
BuildLookup ( CRCParameters param ) : void

Build the CRC lookup table for a given polynomial.

CRC ( ) : System
Reflect ( long data, int numBits ) : long

Reflects the lower bits of the value provided.

메소드 상세

CRC() 공개 메소드

Initializes a new instance of the CRC class.
public CRC ( CRCParameters param ) : System
param CRCParameters The parameters to utilize in the CRC calculation.
리턴 System

HashCore() 보호된 메소드

Drives the hashing function.
protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte The array containing the data.
ibStart int The position in the array to begin reading from.
cbSize int How many bytes in the array to read.
리턴 void

HashFinal() 보호된 메소드

Performs any final activities required by the hash algorithm.
protected HashFinal ( ) : byte[]
리턴 byte[]

Initialize() 공개 메소드

Initializes the algorithm.
public Initialize ( ) : void
리턴 void