checksum

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodedChecksum

func EncodedChecksum(checksum []byte) string

func EncodedCrc32cChecksum

func EncodedCrc32cChecksum(content []byte) string

func EncodedHash

func EncodedHash(hash []byte) string

func EncodedMd5Hash

func EncodedMd5Hash(content []byte) string

func MD5Hash

func MD5Hash(b []byte) []byte

Types

type StreamingHasher added in v1.40.0

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

func NewStreamingHasher added in v1.40.0

func NewStreamingHasher() *StreamingHasher

func (*StreamingHasher) EncodedCrc32cChecksum added in v1.40.0

func (s *StreamingHasher) EncodedCrc32cChecksum() string

func (*StreamingHasher) EncodedMd5Hash added in v1.40.0

func (s *StreamingHasher) EncodedMd5Hash() string

func (*StreamingHasher) Write added in v1.40.0

func (s *StreamingHasher) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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