ricrypto

package
v2.0.0-...-a3e1774 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReaderHash32Proxy

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

ReaderHash32Proxy proxies a reader and produces a `Hash32` sum from the read bytes.

func NewReaderHash32Proxy

func NewReaderHash32Proxy(r io.Reader, h hash.Hash32) *ReaderHash32Proxy

NewReaderHash32Proxy returns a new `ReaderHash32Proxy` struct.

func (*ReaderHash32Proxy) Read

func (rhp *ReaderHash32Proxy) Read(b []byte) (n int, err error)

Read proxies the read to the underlying `Reader` while also pushing the bytes through the `Hash32` struct.

func (*ReaderHash32Proxy) Sum32

func (rhp *ReaderHash32Proxy) Sum32() uint32

Sum32 returns the accumulated hash value.

type ReaderHashProxy

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

ReaderHashProxy proxies a reader and produces a `Hash` sum from the read bytes.

func NewReaderHashProxy

func NewReaderHashProxy(r io.Reader, h hash.Hash) *ReaderHashProxy

NewReaderHashProxy returns a new `ReaderHashProxy` struct.

func (*ReaderHashProxy) Read

func (rhp *ReaderHashProxy) Read(b []byte) (n int, err error)

Read proxies the read to the underlying `Reader` while also pushing the bytes through the `Hash` struct.

func (*ReaderHashProxy) Sum

func (rhp *ReaderHashProxy) Sum() []byte

Sum returns the accumulated hash value.

Jump to

Keyboard shortcuts

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