Documentation ¶
Index ¶
- func Blake2b(inp, personal []byte, size int) []byte
- func Blake2b256(data []byte) []byte
- func Fnv1(u, v uint32) uint32
- func Fnv1a(u, v uint32) uint32
- func FnvHash(mix []uint32, data []uint32)
- func Keccak256(b []byte) []byte
- func Keccak512(b []byte) []byte
- func KeccakF800(state *[25]uint32)
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Blake2b256 ¶
func Fnv1 ¶
See https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1_hash.
func Fnv1a ¶
See https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1a_hash.
func KeccakF800 ¶
func KeccakF800(state *[25]uint32)
Types ¶
type Hasher ¶
hasher is a repetitive hasher allowing the same hash data structures to be reused between hash runs instead of requiring new ones to be created.
func NewKeccak256Hasher ¶
func NewKeccak256Hasher() Hasher
func NewKeccak512Hasher ¶
func NewKeccak512Hasher() Hasher
Click to show internal directories.
Click to hide internal directories.