Documentation ¶
Index ¶
- Constants
- func New(k []byte) hash.Hash
- func New128(k []byte) hash.Hash
- func New64(k []byte) hash.Hash
- func NewWithCDroundsAndHashSize(k []byte, crounds, drounds int32, hashSize int) hash.Hash
- func NewWithHashSize(k []byte, hashSize int) hash.Hash
- func ROTL(x, n uint64) uint64
- func SIPROUND(v0, v1, v2, v3 *uint64)
- func U32TO8_LE(p []byte, v uint32)
- func U64TO8_LE(p []byte, v uint64)
- func U8TO64_LE(p []byte) uint64
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 NewWithCDroundsAndHashSize ¶
NewWithCDroundsAndHashSize returns a new hash.Hash computing the Siphash checksum.
func NewWithHashSize ¶ added in v1.0.2009
NewWithHashSize returns a new hash.Hash computing the Siphash checksum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.