Documentation
¶
Overview ¶
Package ghash provides some classic hash functions(uint32/uint64) in go.
Index ¶
- func AP(str []byte) uint32
- func AP64(str []byte) uint64
- func BKDR(str []byte) uint32
- func BKDR64(str []byte) uint64
- func DJB(str []byte) uint32
- func DJB64(str []byte) uint64
- func ELF(str []byte) uint32
- func ELF64(str []byte) uint64
- func JS(str []byte) uint32
- func JS64(str []byte) uint64
- func PJW(str []byte) uint32
- func PJW64(str []byte) uint64
- func RS(str []byte) uint32
- func RS64(str []byte) uint64
- func SDBM(str []byte) uint32
- func SDBM64(str []byte) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BKDR ¶
BKDR implements the classic BKDR hash algorithm for 32 bits.
func BKDR64 ¶
BKDR64 implements the classic BKDR hash algorithm for 64 bits.
func DJB64 ¶
DJB64 implements the classic DJB hash algorithm for 64 bits.
func ELF64 ¶
ELF64 implements the classic ELF hash algorithm for 64 bits.
func PJW64 ¶
PJW64 implements the classic PJW hash algorithm for 64 bits.
func SDBM ¶
SDBM implements the classic SDBM hash algorithm for 32 bits.
Types ¶
This section is empty.
Source Files
¶
- ghash.go
- ghash_ap.go
- ghash_bkdr.go
- ghash_djb.go
- ghash_elf.go
- ghash_jshash.go
- ghash_pjw.go
- ghash_rs.go
- ghash_sdbm.go
Click to show internal directories.
Click to hide internal directories.