ghash

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 0 Imported by: 26

Documentation

Overview

Package ghash provides some classic hash functions(uint32/uint64) in go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AP

func AP(str []byte) uint32

AP implements the classic AP hash algorithm for 32 bits.

func AP64

func AP64(str []byte) uint64

AP64 implements the classic AP hash algorithm for 64 bits.

func BKDR

func BKDR(str []byte) uint32

BKDR implements the classic BKDR hash algorithm for 32 bits.

func BKDR64

func BKDR64(str []byte) uint64

BKDR64 implements the classic BKDR hash algorithm for 64 bits.

func DJB

func DJB(str []byte) uint32

DJB implements the classic DJB hash algorithm for 32 bits.

func DJB64

func DJB64(str []byte) uint64

DJB64 implements the classic DJB hash algorithm for 64 bits.

func ELF

func ELF(str []byte) uint32

ELF implements the classic ELF hash algorithm for 32 bits.

func ELF64

func ELF64(str []byte) uint64

ELF64 implements the classic ELF hash algorithm for 64 bits.

func JS

func JS(str []byte) uint32

JS implements the classic JS hash algorithm for 32 bits.

func JS64

func JS64(str []byte) uint64

JS64 implements the classic JS hash algorithm for 64 bits.

func PJW

func PJW(str []byte) uint32

PJW implements the classic PJW hash algorithm for 32 bits.

func PJW64

func PJW64(str []byte) uint64

PJW64 implements the classic PJW hash algorithm for 64 bits.

func RS

func RS(str []byte) uint32

RS implements the classic RS hash algorithm for 32 bits.

func RS64

func RS64(str []byte) uint64

RS64 implements the classic RS hash algorithm for 64 bits.

func SDBM

func SDBM(str []byte) uint32

SDBM implements the classic SDBM hash algorithm for 32 bits.

func SDBM64

func SDBM64(str []byte) uint64

SDBM64 implements the classic SDBM hash algorithm for 64 bits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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