Documentation
¶
Overview ¶
crc64パッケージは64ビットの巡回冗長検査(CRC-64)チェックサムを実装しています。 詳細はhttps://en.wikipedia.org/wiki/Cyclic_redundancy_checkを参照してください。
Index ¶
Constants ¶
View Source
const ( // ISO 3309で定義され、HDLCで使用されるISOポリノミアル。 ISO = 0xD800000000000000 // ECMA 182で定義されたECMA多項式。 ECMA = 0xC96C5795D7870F42 )
事前定義された多項式。
View Source
const Size = 8
CRC-64のチェックサムのバイト単位のサイズ。
Variables ¶
This section is empty.
Functions ¶
func New ¶
Newは Table で表される多項式を使用してCRC-64チェックサムを計算する新しいhash.Hash64を作成します。Sumメソッドは値をビッグエンディアンのバイト順で並べます。返されるHash64は、内部状態をmarshalおよびunmarshalするための encoding.BinaryMarshaler および encoding.BinaryUnmarshaler も実装しています。
Types ¶
Click to show internal directories.
Click to hide internal directories.