Imports #
"crypto/sha256"
"hash"
"crypto/sha256"
"hash"
Size16 is the size of the 16-byte hash checksum.
const Size16 = 16Size20 is the size of the 20-byte hash checksum.
const Size20 = 20Size32 is the size of the 32-byte hash checksum.
const Size32 = 32type shortHash struct {
hash.Hash
n int
}New16 returns a new [hash.Hash] computing the 16 bytes hash checksum.
func New16() hash.HashNew20 returns a new [hash.Hash] computing the 20 bytes hash checksum.
func New20() hash.HashNew32 returns a new [hash.Hash] computing the 32 bytes hash checksum.
func New32() hash.Hashfunc (h *shortHash) Sum(b []byte) []byteSum16 returns the 16 bytes checksum of the data.
func Sum16(data []byte) [Size16]byteSum20 returns the 20 bytes checksum of the data.
func Sum20(data []byte) [Size20]byteSum32 returns the 32 bytes checksum of the data.
func Sum32(data []byte) [Size32]byteGenerated with Arrow