siphash

package
v1.0.2010 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BLOCK_SIZE = 8
View Source
const BlockSize = 8

The blocksize of Siphash in bytes.

View Source
const C_ROUNDS = 2
View Source
const D_ROUNDS = 4
View Source
const HashSize128 = 16
View Source
const HashSize64 = 8
View Source
const KEY_SIZE = 16
View Source
const MAX_DIGEST_SIZE = 16
View Source
const MIN_DIGEST_SIZE = 8

Variables

This section is empty.

Functions

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

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 ROTL

func ROTL(x, n uint64) uint64

func SIPROUND

func SIPROUND(v0, v1, v2, v3 *uint64)

func U32TO8_LE

func U32TO8_LE(p []byte, v uint32)

func U64TO8_LE

func U64TO8_LE(p []byte, v uint64)

func U8TO64_LE

func U8TO64_LE(p []byte) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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