verify

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHashes  = errors.New("verify: no hashes provided")
	ErrShortData = errors.New("verify: data too short")
)

Functions

This section is empty.

Types

type ErrHashMismatch

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

func (*ErrHashMismatch) Error

func (e *ErrHashMismatch) Error() string

type ErrInvalidSize

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

func (*ErrInvalidSize) Error

func (e *ErrInvalidSize) Error() string

type Hash

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

type Verifier

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

func NewVerifier

func NewVerifier(hashes map[string]string, size int64) (*Verifier, error)

func (*Verifier) Reader

func (v *Verifier) Reader(r io.Reader) io.Reader

func (*Verifier) Verify

func (v *Verifier) Verify() error

Jump to

Keyboard shortcuts

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