Versions in this module Expand all Collapse all v1 v1.0.0 Mar 15, 2017 Changes in this version + const HashStringSize + const RipeHashStringSize + const RipeSize + const ShaSize + var ErrHashStrSize = fmt.Errorf("string length must be %v chars", HashStringSize) + var ErrRipeHashStrSize = fmt.Errorf("string length must be %v chars", RipeHashStringSize) + func DoubleSha512(b []byte) []byte + func Sha512(b []byte) []byte + type Ripe [RipeSize]byte + func NewRipe(newHash []byte) (*Ripe, error) + func NewRipeFromStr(hash string) (*Ripe, error) + func (hash *Ripe) Bytes() []byte + func (hash *Ripe) IsEqual(target *Ripe) bool + func (hash *Ripe) SetBytes(newHash []byte) error + func (hash Ripe) String() string + type Sha [ShaSize]byte + func InventoryHash(stuff []byte) *Sha + func NewSha(newHash []byte) (*Sha, error) + func NewShaFromStr(hash string) (*Sha, error) + func (hash *Sha) Bytes() []byte + func (hash *Sha) IsEqual(target *Sha) bool + func (hash *Sha) SetBytes(newHash []byte) error + func (hash Sha) String() string