hash

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32

func CRC32(bs cryptox.Bytes, table *Table32) uint32

CRC32 uses given table to checksum bs. Use IEEE table if passed table is nil.

func CRC32IEEE

func CRC32IEEE(bs cryptox.Bytes) uint32

CRC32IEEE uses ieee table to checksum bs.

func CRC64

func CRC64(bs cryptox.Bytes, table *Table64) uint64

CRC64 uses given table to checksum bs. Use ISO table if passed table is nil.

func CRC64ECMA

func CRC64ECMA(bs cryptox.Bytes) uint64

CRC64ECMA uses ecma table to checksum bs.

func CRC64ISO

func CRC64ISO(bs cryptox.Bytes) uint64

CRC64ISO uses iso table to checksum bs.

func Fnv128

func Fnv128(bs cryptox.Bytes) cryptox.Bytes

Fnv128 uses fnv-1/128bit to hash bs.

func Fnv128a

func Fnv128a(bs cryptox.Bytes) cryptox.Bytes

Fnv128a uses fnv-1a/128bit to hash bs.

func Fnv32

func Fnv32(bs cryptox.Bytes) uint32

Fnv32 uses fnv-1/32bit to hash bs.

func Fnv32a

func Fnv32a(bs cryptox.Bytes) uint32

Fnv32a uses fnv-1a/32bit to hash bs.

func Fnv64

func Fnv64(bs cryptox.Bytes) uint64

Fnv64 uses fnv-1/64bit to hash bs.

func Fnv64a

func Fnv64a(bs cryptox.Bytes) uint64

Fnv64a uses fnv-1a/64bit to hash bs.

func MD5

func MD5(bs cryptox.Bytes) cryptox.Bytes

MD5 uses md5 to hash bs.

func SHA1

func SHA1(bs cryptox.Bytes) cryptox.Bytes

SHA1 uses sha1 to hash bs.

func SHA224

func SHA224(bs cryptox.Bytes) cryptox.Bytes

SHA224 uses sha224 to hash bs.

func SHA256

func SHA256(bs cryptox.Bytes) cryptox.Bytes

SHA256 uses sha256 to hash bs.

func SHA384

func SHA384(bs cryptox.Bytes) cryptox.Bytes

SHA384 uses sha384 to hash bs.

func SHA512

func SHA512(bs cryptox.Bytes) cryptox.Bytes

SHA512 uses sha512 to hash bs.

Types

type Table32

type Table32 = crc32.Table

type Table64

type Table64 = crc64.Table

Jump to

Keyboard shortcuts

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