sha384

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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

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

Hash offers an interface to add data for computing a digest

func New

func New() *Hash

New returns a sha384.Hash to compute a digest

func (*Hash) AddBytes

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

AddBytes add bytes to the hash

func (*Hash) AddFile

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

AddFile reads a file and adds it to the hash

func (*Hash) Digest

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