Documentation
¶
Index ¶
- Constants
- func GETU64(ptr []byte) uint64
- 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, error)
- func NewWithHashSize(k []byte, hashSize int) hash.Hash
- func PUTU64(ptr []byte, a uint64)
- func ROTL(x, n uint64) uint64
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 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.