siphash

package
v1.0.2018 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 8

The blocksize of Siphash in bytes.

View Source
const CRounds = 2
View Source
const DRounds = 4
View Source
const HashSize128 = 16
View Source
const HashSize64 = 8
View Source
const KeySize = 16
View Source
const MaxDigestSize = 16
View Source
const MinDigestSize = 8

Variables

This section is empty.

Functions

func GETU64 added in v1.0.2011

func GETU64(ptr []byte) uint64

func New

func New(k []byte) hash.Hash

New returns a new hash.Hash computing the Siphash checksum.

func New128 added in v1.0.2009

func New128(k []byte) hash.Hash

New alias, return 16 bytes

func New64 added in v1.0.2009

func New64(k []byte) hash.Hash

return 8 bytes

func NewWithCDroundsAndHashSize

func NewWithCDroundsAndHashSize(k []byte, crounds, drounds int32, hashSize int) (hash.Hash, error)

NewWithCDroundsAndHashSize returns a new hash.Hash computing the Siphash checksum.

func NewWithHashSize added in v1.0.2009

func NewWithHashSize(k []byte, hashSize int) hash.Hash

NewWithHashSize returns a new hash.Hash computing the Siphash checksum.

func PUTU64 added in v1.0.2011

func PUTU64(ptr []byte, a uint64)

func ROTL

func ROTL(x, n uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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