hashing

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum64

func Sum64(key string) []byte

fnva hash function

Types

type HashingReaderWrapper

type HashingReaderWrapper struct {
	Reader             *bufio.Reader
	CalculateSignature bool
	// contains filtered or unexported fields
}

func (HashingReaderWrapper) Discard

func (t HashingReaderWrapper) Discard(offset int64) error

func (*HashingReaderWrapper) FinishHashCalculation

func (t *HashingReaderWrapper) FinishHashCalculation() []byte

func (HashingReaderWrapper) Peek

func (t HashingReaderWrapper) Peek(count int) ([]byte, error)

func (HashingReaderWrapper) Read

func (t HashingReaderWrapper) Read(bytes []byte) (int, error)

func (HashingReaderWrapper) Reset

func (t HashingReaderWrapper) Reset(reader io.Reader)

func (*HashingReaderWrapper) StartHashCalculation

func (t *HashingReaderWrapper) StartHashCalculation(hash crypto.Hash)

Jump to

Keyboard shortcuts

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