Documentation
¶
Overview ¶
Package tiger implements the Tiger hash algorithm https://github.com/cxmcc/tiger
Index ¶
Examples ¶
Constants ¶
View Source
const BlockSize = 64
The blocksize of Tiger hash function in bytes
View Source
const Size = 24
The size of a Tiger hash value in bytes
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new hash.Hash computing the Tiger hash value
Example ¶
h := New() io.WriteString(h, "It's the eye of the tiger, it's the thrill of the fight") io.WriteString(h, "Rising up to the challenge of our rival!") fmt.Printf("%x", h.Sum(nil))
Output: a7bbad36cc17918e399ae8ee893e4595e4d24e1639fe822c
func New2 ¶
New returns a new hash.Hash computing the Tiger2 hash value
Example ¶
h := New2() io.WriteString(h, "It's the eye of the tiger, it's the thrill of the fight") io.WriteString(h, "Rising up to the challenge of our rival!") fmt.Printf("%x", h.Sum(nil))
Output: c86695c2a639506682de2c12c2d23b61a12db78ea1ee1001
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.