Versions in this module Expand all Collapse all v1 v1.0.0 Jan 10, 2020 Changes in this version + const Default + const Deprecated + const Normal + const Obsolete + const Unknown + func Equal(l, r Imprint) bool + func RegisterHash(h Algorithm, f func() hash.Hash) + type Algorithm int + const RIPEMD160 + const SHA1 + const SHA2_256 + const SHA2_384 + const SHA2_512 + const SHA3_224 + const SHA3_256 + const SHA3_384 + const SHA3_512 + const SHA_NA + const SM3 + func ByName(name string) (Algorithm, error) + func ListDefined() []Algorithm + func ListSupported() []Algorithm + func (a Algorithm) BlockSize() int + func (a Algorithm) Defined() bool + func (a Algorithm) DeprecatedFrom() (int64, error) + func (a Algorithm) HashFunc() (hash.Hash, error) + func (a Algorithm) New() (*DataHasher, error) + func (a Algorithm) ObsoleteFrom() (int64, error) + func (a Algorithm) Registered() bool + func (a Algorithm) Size() int + func (a Algorithm) StatusAt(at int64) FunctionStatus + func (a Algorithm) String() string + func (a Algorithm) Trusted() bool + func (a Algorithm) ZeroImprint() Imprint + type DataHasher struct + func (h *DataHasher) BlockSize() int + func (h *DataHasher) Imprint() (Imprint, error) + func (h *DataHasher) Reset() + func (h *DataHasher) Size() int + func (h *DataHasher) Write(p []byte) (int, error) + type FunctionStatus byte + type Imprint []byte + func CryptoHashToImprint(cryptoId crypto.Hash, digest []byte) (Imprint, error) + func (i Imprint) Algorithm() Algorithm + func (i Imprint) Digest() []byte + func (i Imprint) IsValid() bool + func (i Imprint) String() string