Documentation ¶
Overview ¶
Package ghash provides some classic hash functions(uint32/uint64) in go.
Index ¶
- func APHash(str []byte) uint32
- func APHash64(str []byte) uint64
- func BKDRHash(str []byte) uint32
- func BKDRHash64(str []byte) uint64
- func DJBHash(str []byte) uint32
- func DJBHash64(str []byte) uint64
- func ELFHash(str []byte) uint32
- func ELFHash64(str []byte) uint64
- func JSHash(str []byte) uint32
- func JSHash64(str []byte) uint64
- func PJWHash(str []byte) uint32
- func PJWHash64(str []byte) uint64
- func RSHash(str []byte) uint32
- func RSHash64(str []byte) uint64
- func SDBMHash(str []byte) uint32
- func SDBMHash64(str []byte) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APHash ¶
APHash implements the classic AP hash algorithm for 32 bits.
func APHash64 ¶
APHash64 implements the classic AP hash algorithm for 64 bits.
func BKDRHash ¶
BKDRHash implements the classic BKDR hash algorithm for 32 bits.
func BKDRHash64 ¶
BKDRHash64 implements the classic BKDR hash algorithm for 64 bits.
func DJBHash ¶
DJBHash implements the classic DJB hash algorithm for 32 bits.
func DJBHash64 ¶
DJBHash64 implements the classic DJB hash algorithm for 64 bits.
func ELFHash ¶
ELFHash implements the classic ELF hash algorithm for 32 bits.
func ELFHash64 ¶
ELFHash64 implements the classic ELF hash algorithm for 64 bits.
func JSHash ¶
JSHash implements the classic JS hash algorithm for 32 bits.
func JSHash64 ¶
JSHash64 implements the classic JS hash algorithm for 64 bits.
func PJWHash ¶
PJWHash implements the classic PJW hash algorithm for 32 bits.
func PJWHash64 ¶
PJWHash64 implements the classic PJW hash algorithm for 64 bits.
func RSHash ¶
RSHash implements the classic RS hash algorithm for 32 bits.
func RSHash64 ¶
RSHash64 implements the classic RS hash algorithm for 64 bits.
func SDBMHash ¶
SDBMHash implements the classic SDBM hash algorithm for 32 bits.
Types ¶
This section is empty.