shorthash

package
v0.0.0-...-f08c318 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Siphash24_Bytes    = 8
	Siphash24_KeyBytes = 16

	Siphashx24_Bytes    = 16
	Siphashx24_KeyBytes = 16

	Primitive = "siphash24"
	Bytes     = Siphash24_Bytes
	KeyBytes  = Siphash24_KeyBytes
)

Variables

This section is empty.

Functions

func New

func New(key []byte) (h godium.ShortHash64)

func NewSiphash24

func NewSiphash24(key []byte) (h godium.ShortHash64)

func NewSiphashx24

func NewSiphashx24(key []byte) (h godium.ShortHash128)

func ShortHash64

func ShortHash64(key, data []byte) (sum uint64)

func ShortHash128

func ShortHash128(key, data []byte) (s1, s2 uint64)

func Siphash24

func Siphash24(key, data []byte) (sum uint64)

func Siphashx24

func Siphashx24(key, data []byte) (s1, s2 uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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