Documentation ¶
Overview ¶
Package tiger implements Tiger hash function and TTH (Tiger Tree Hash) algorithm.
Index ¶
- Constants
- func New() hash.Hash
- func New2() hash.Hash
- type Hash
- func (h Hash) Base32() string
- func (h Hash) Bytes() []byte
- func (h *Hash) FromBase32(s string) error
- func (h Hash) Hex() string
- func (h Hash) IsZero() bool
- func (h Hash) MarshalAdc() ([]byte, error)
- func (h Hash) MarshalText() ([]byte, error)
- func (h Hash) String() string
- func (h *Hash) UnmarshalAdc(s []byte) error
- func (h *Hash) UnmarshalText(text []byte) error
Constants ¶
View Source
const ( BlockSize = 64 // 512 bits Size = 24 // 192 bits )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hash ¶
Hash is a tiger hash value.
func MustParseBase32 ¶
MustParseBase32 parses the tiger hash from base32 encoding and panics on error.
func (*Hash) FromBase32 ¶
FromBase32 parses hash from base32 encoding.
func (Hash) MarshalAdc ¶
func (Hash) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Hash) UnmarshalAdc ¶
func (*Hash) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Directories ¶
Path | Synopsis |
---|---|
Implements the Tiger/192 hash function as specified in http://www.cs.technion.ac.il/~biham/Reports/Tiger/tiger/tiger.html Tiger/160 and Tiger/128 are simply truncations of the Tiger/192 sum, so there's no specific implementation for those.
|
Implements the Tiger/192 hash function as specified in http://www.cs.technion.ac.il/~biham/Reports/Tiger/tiger/tiger.html Tiger/160 and Tiger/128 are simply truncations of the Tiger/192 sum, so there's no specific implementation for those. |
Click to show internal directories.
Click to hide internal directories.