go/src/hash/crc64/crc64.go

const Size

const ISO

const ECMA

type Table

var slicing8TableISO

var slicing8TableECMA

var buildSlicing8TablesOnce

func buildSlicing8Tables() {}

// MakeTable returns a [Table] constructed from the specified polynomial.
// The contents of this [Table] must not be modified.
func MakeTable(poly uint64) *Table {}

func makeTable(poly uint64) *Table {}

func makeSlicingBy8Table(t *Table) *[8]Table {}

type digest

// New creates a new hash.Hash64 computing the CRC-64 checksum using the
// polynomial represented by the [Table]. Its Sum method will lay the
// value out in big-endian byte order. The returned Hash64 also
// implements [encoding.BinaryMarshaler] and [encoding.BinaryUnmarshaler] to
// marshal and unmarshal the internal state of the hash.
func New(tab *Table) hash.Hash64 {}

func (d *digest) Size() int {}

func (d *digest) BlockSize() int {}

func (d *digest) Reset() {}

const magic

const marshaledSize

func (d *digest) AppendBinary(b []byte) ([]byte, error) {}

func (d *digest) MarshalBinary() ([]byte, error) {}

func (d *digest) UnmarshalBinary(b []byte) error {}

func update(crc uint64, tab *Table, p []byte) uint64 {}

// Update returns the result of adding the bytes in p to the crc.
func Update(crc uint64, tab *Table, p []byte) uint64 {}

func (d *digest) Write(p []byte) (n int, err error) {}

func (d *digest) Sum64() uint64 {}

func (d *digest) Sum(in []byte) []byte {}

// Checksum returns the CRC-64 checksum of data
// using the polynomial represented by the [Table].
func Checksum(data []byte, tab *Table) uint64 {}

// tableSum returns the ISO checksum of table t.
func tableSum(t *Table) uint64 {}