Crc32 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 CRC-32 演算法的實作,該演算法用於 ITU-T V.42 與 IEEE 802.3。
public ref class Crc32 sealed : System::IO::Hashing::NonCryptographicHashAlgorithm
public sealed class Crc32 : System.IO.Hashing.NonCryptographicHashAlgorithm
type Crc32 = class
inherit NonCryptographicHashAlgorithm
Public NotInheritable Class Crc32
Inherits NonCryptographicHashAlgorithm
- 繼承
備註
此實作以小恩迪安位元組順序輸出答案,使得 CRC 殘餘關係(CRC(訊息 concat CRC(message))為固定值)成立。
對於 CRC-32,這個穩定輸出是位元組序列 { 0x1C, 0xDF, 0x44, 0x21 },即 的 0x2144DF1CLittle Endian 表示。
32位元循環冗餘檢查(CRC)演算法有多種不相容的定義。 與其他系統互通時,請確保使用相同的定義。 此實作所使用的定義與 I.363.5 ITU-T 描述的循環冗餘檢查不相容。
建構函式
| 名稱 | Description |
|---|---|
| Crc32() |
初始化 Crc32 類別的新執行個體。 |
| Crc32(Crc32ParameterSet) |
提供 CRC-32 演算法的實作,該演算法用於 ITU-T V.42 與 IEEE 802.3。 |
屬性
| 名稱 | Description |
|---|---|
| HashLengthInBytes |
取得此雜湊演算法產生的位元組數。 (繼承來源 NonCryptographicHashAlgorithm) |
| ParameterSet |
提供 CRC-32 演算法的實作,該演算法用於 ITU-T V.42 與 IEEE 802.3。 |