hash

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 64

BlockSize The blocksize of MD5 in bytes.

View Source
const Size = 16

Size The size of an MD5 checksum in bytes.

Variables

This section is empty.

Functions

func Crc32

func Crc32(key []byte) uint32

func Fnv32

func Fnv32(key []byte) uint32

func Fnv64

func Fnv64(key []byte) uint64

func MD5 added in v1.1.0

func MD5(data []byte) (h []byte)

func MD5HL added in v1.1.0

func MD5HL(h []byte) (hi, lo uint64)

func MD5Hash added in v1.1.0

func MD5Hash(data []byte) (h []byte, hi, lo uint64)

func MD5Sum added in v1.1.0

func MD5Sum(p []byte) (h []byte, hi, lo uint64)

func MD5Uint64 added in v1.1.0

func MD5Uint64(p []byte) (hi, lo uint64)

func New added in v1.1.0

func New() hash.Hash

New returns a new hash.Hash computing the MD5 checksum. The Hash also implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.

func Sum added in v1.1.0

func Sum(data []byte) [Size]byte

Sum returns the MD5 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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