C# 클래스 LSLib.Granny.Crc32

Implements a 32-bit CRC hash algorithm compatible with Zip etc.
Crc32 should only be used for backward compatibility with older file formats and algorithms. It is not secure enough for new applications. If you need to call multiple times for the same data either use the HashAlgorithm interface or remember that the result of one Compute call needs to be ~ (XOR) before being passed in as the seed for the next Compute call.
상속: System.Security.Cryptography.HashAlgorithm
파일 보기 프로젝트 열기: Norbyte/lslib

공개 메소드들

메소드 설명
Compute ( UInt32 polynomial, UInt32 seed, byte buffer ) : UInt32
Compute ( UInt32 seed, byte buffer ) : UInt32
Compute ( byte buffer ) : UInt32
Crc32 ( ) : System
Crc32 ( UInt32 polynomial, UInt32 seed ) : System
Initialize ( ) : void

보호된 메소드들

메소드 설명
HashCore ( byte buffer, int start, int length ) : void
HashFinal ( ) : byte[]

비공개 메소드들

메소드 설명
CalculateHash ( UInt32 table, UInt32 seed, IList buffer, int start, int size ) : UInt32
InitializeTable ( UInt32 polynomial ) : System.UInt32[]
UInt32ToBigEndianBytes ( UInt32 uint32 ) : byte[]

메소드 상세

Compute() 공개 정적인 메소드

public static Compute ( UInt32 polynomial, UInt32 seed, byte buffer ) : UInt32
polynomial System.UInt32
seed System.UInt32
buffer byte
리턴 System.UInt32

Compute() 공개 정적인 메소드

public static Compute ( UInt32 seed, byte buffer ) : UInt32
seed System.UInt32
buffer byte
리턴 System.UInt32

Compute() 공개 정적인 메소드

public static Compute ( byte buffer ) : UInt32
buffer byte
리턴 System.UInt32

Crc32() 공개 메소드

public Crc32 ( ) : System
리턴 System

Crc32() 공개 메소드

public Crc32 ( UInt32 polynomial, UInt32 seed ) : System
polynomial System.UInt32
seed System.UInt32
리턴 System

HashCore() 보호된 메소드

protected HashCore ( byte buffer, int start, int length ) : void
buffer byte
start int
length int
리턴 void

HashFinal() 보호된 메소드

protected HashFinal ( ) : byte[]
리턴 byte[]

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void