sha384

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum

func Sum(digests []*digest.Digest) (*digest.Digest, error)

Sum aggregates multiple digests to a single SHA384 digest

Types

type Hash added in v0.9.0

type Hash struct {
	// contains filtered or unexported fields
}

Hash offers an interface to add data for computing a digest

func New added in v0.9.0

func New() *Hash

New returns a sha384.Hash to compute a digest

func (*Hash) AddBytes added in v0.9.0

func (h *Hash) AddBytes(b []byte) error

AddBytes add bytes to the hash

func (*Hash) AddFile added in v0.9.0

func (h *Hash) AddFile(path string) error

AddFile reads a file and adds it to the hash

func (*Hash) Digest added in v0.9.0

func (h *Hash) Digest() *digest.Digest

Digest returns the digest of the hash

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL