checksum

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package checksum computes checksums, like MD5 or SHA256, for large files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adler32sum

func Adler32sum(filename string, _ int, _ string) (string, error)

Adler32sum returns XXH checksum of content in reader bits: 32

func Adler32sumReader

func Adler32sumReader(reader io.Reader, _ int, _ string) (string, error)

Adler32sumReader returns XXH checksum of content in reader bytes: 32

func BLAKE2Bsum

func BLAKE2Bsum(filename string, bits int, _ string) (string, error)

BLAKE2Bsum returns BLAKE2b checksum of filename bits: 256, 384, 512

func BLAKE2BsumReader

func BLAKE2BsumReader(reader io.Reader, bytes int, _ string) (string, error)

BLAKE2BsumReader returns BLAKE2b checksum of content in reader bytes: 256, 384, 512

func BLAKE3sum

func BLAKE3sum(filename string, bits int, _ string) (string, error)

BLAKE3sum returns BLAKE3 checksum of filename bits: 256, 384, 512

func BLAKE3sumReader

func BLAKE3sumReader(reader io.Reader, bytes int, _ string) (string, error)

BLAKE3sumReader returns BLAKE3 checksum of content in reader bytes: 256, 384, 512

func CRC32Reader

func CRC32Reader(reader io.Reader, _ int, poly string) (string, error)

CRC32Reader returns CRC32 checksum of content in reader bytes:

func CRC32sum

func CRC32sum(filename string, _ int, poly string) (string, error)

CRC32sum returns CRC32 checksum of content in filename bits: 32

func CRC64Reader

func CRC64Reader(reader io.Reader, _ int, poly string) (string, error)

CRC64Reader returns CRC64 checksum of content in reader bytes:

func CRC64sum

func CRC64sum(filename string, _ int, poly string) (string, error)

CRC64sum returns CRC64 checksum of content in filename bits: 64

func CRC8Reader

func CRC8Reader(reader io.Reader, _ int, poly string) (string, error)

func CRC8Sum

func CRC8Sum(reader io.Reader, _ int, poly string) (string, error)

func FNVasum

func FNVasum(filename string, bits int, _ string) (string, error)

FNVasum returns XXH checksum of content in reader bits: 32, 64, 128

func FNVasumReader

func FNVasumReader(reader io.Reader, bytes int, _ string) (string, error)

FNVasumReader returns XXH checksum of content in reader bytes: 32, 64, 128

func FNVsum

func FNVsum(filename string, bits int, _ string) (string, error)

FNVsum returns XXH checksum of content in reader bits: 32, 64, 128

func FNVsumReader

func FNVsumReader(reader io.Reader, bytes int, _ string) (string, error)

FNVsumReader returns XXH checksum of content in reader bytes: 32, 64, 128

func LESum

func LESum(filename string, bits int, _ string) (string, error)

LESum returns 8 or 32 bit little-endian checksum of content in filename bits: 32

func LESumReader

func LESumReader(reader io.Reader, bytes int, _ string) (string, error)

LESumReader returns 8 or 32 bit little-endian checksum of content in reader bits: 32

func MD5sum

func MD5sum(filename string, _ int, _ string) (string, error)

MD5sum returns MD5 checksum of filename bits: 128

func MD5sumReader

func MD5sumReader(reader io.Reader, _ int, _ string) (string, error)

MD5sumReader returns MD5 checksum of content in reader bytes: 128

func SHA1sum

func SHA1sum(filename string, _ int, _ string) (string, error)

SHA1sum returns SHA-1 checksum of filename bits: 160

func SHA1sumReader

func SHA1sumReader(reader io.Reader, _ int, _ string) (string, error)

SHA1sumReader returns SHA-1 checksum of content in reader bytes: 160

func SHA2sum

func SHA2sum(filename string, bits int, _ string) (string, error)

SHA2sum returns SHA-2 checksum of filename bits: 224, 256, 384, 512

func SHA2sumReader

func SHA2sumReader(reader io.Reader, bytes int, _ string) (string, error)

SHA2sumReader returns SHA-2 checksum of content in reader bytes: 224, 256, 384, 512

func SHA3sum

func SHA3sum(filename string, bits int, _ string) (string, error)

SHA3sum returns SHA-3 checksum of filename bits: 224, 256, 384, 512

func SHA3sumReader

func SHA3sumReader(reader io.Reader, bytes int, _ string) (string, error)

SHA3sumReader returns SHA-3 checksum of content in reader bytes: 224, 256, 384, 512

func XXHsum

func XXHsum(filename string, bits int, _ string) (string, error)

XXHsum returns XXH(32/64) checksum of filename bits: 32, 64

func XXHsumReader

func XXHsumReader(reader io.Reader, bytes int, _ string) (string, error)

XXHsumReader returns XXH checksum of content in reader bytes: 32, 64

Types

This section is empty.

Jump to

Keyboard shortcuts

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