Documentation

Index

Constants

View Source
const (
	Size      = sha256.Size
	BlockSize = sha256.BlockSize
)
View Source
const (
	TruncatedSize = 20
)

Variables

This section is empty.

Functions

func New

func New() hash.Hash

    New returns a new hash.Hash.

    func NewTruncated

    func NewTruncated() hash.Hash

      NewTruncated returns a new hash.Hash.

      func Sum

      func Sum(bz []byte) []byte

        Sum returns the SHA256 of the bz.

        func SumTruncated

        func SumTruncated(bz []byte) []byte

          SumTruncated returns the first 20 bytes of SHA256 of the bz.

          Types

          This section is empty.

          Source Files