ghash

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 0 Imported by: 0

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 APHash

func APHash(str []byte) uint32

APHash implements the classic AP hash algorithm for 32 bits.

func APHash64

func APHash64(str []byte) uint64

APHash64 implements the classic AP hash algorithm for 64 bits.

func BKDRHash

func BKDRHash(str []byte) uint32

BKDRHash implements the classic BKDR hash algorithm for 32 bits.

func BKDRHash64

func BKDRHash64(str []byte) uint64

BKDRHash64 implements the classic BKDR hash algorithm for 64 bits.

func DJBHash

func DJBHash(str []byte) uint32

DJBHash implements the classic DJB hash algorithm for 32 bits.

func DJBHash64

func DJBHash64(str []byte) uint64

DJBHash64 implements the classic DJB hash algorithm for 64 bits.

func ELFHash

func ELFHash(str []byte) uint32

ELFHash implements the classic ELF hash algorithm for 32 bits.

func ELFHash64

func ELFHash64(str []byte) uint64

ELFHash64 implements the classic ELF hash algorithm for 64 bits.

func JSHash

func JSHash(str []byte) uint32

JSHash implements the classic JS hash algorithm for 32 bits.

func JSHash64

func JSHash64(str []byte) uint64

JSHash64 implements the classic JS hash algorithm for 64 bits.

func PJWHash

func PJWHash(str []byte) uint32

PJWHash implements the classic PJW hash algorithm for 32 bits.

func PJWHash64

func PJWHash64(str []byte) uint64

PJWHash64 implements the classic PJW hash algorithm for 64 bits.

func RSHash

func RSHash(str []byte) uint32

RSHash implements the classic RS hash algorithm for 32 bits.

func RSHash64

func RSHash64(str []byte) uint64

RSHash64 implements the classic RS hash algorithm for 64 bits.

func SDBMHash

func SDBMHash(str []byte) uint32

SDBMHash implements the classic SDBM hash algorithm for 32 bits.

func SDBMHash64

func SDBMHash64(str []byte) uint64

SDBMHash64 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