crc32

package
v0.0.0-...-86cf518 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package crc32 implements the 32-bit cyclic redundancy check, or CRC-32, checksum as implemented by the Terraonion firmware.

It uses the standard CRC-32 normal polynomial but computes the CRC in a slightly different way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(data []byte) uint32

Checksum returns the CRC-32 checksum of data.

func New

func New() hash.Hash32

New creates a new hash.Hash32 computing the CRC-32 checksum. Its Sum method will lay the value out in big-endian byte order.

func Update

func Update(crc uint32, p []byte) uint32

Update returns the result of adding the bytes in p to the crc.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL