Documentation ¶
Overview ¶
Package checksum computes checksums, like MD5 or SHA256, for large files
Index ¶
- func Adler32sum(filename string, _ int, _ string) (string, error)
- func Adler32sumReader(reader io.Reader, _ int, _ string) (string, error)
- func BLAKE2Bsum(filename string, bytes int, _ string) (string, error)
- func BLAKE2BsumReader(reader io.Reader, bytes int, _ string) (string, error)
- func BLAKE3sum(filename string, bytes int, _ string) (string, error)
- func BLAKE3sumReader(reader io.Reader, bytes int, _ string) (string, error)
- func CRC32Reader(reader io.Reader, _ int, poly string) (string, error)
- func CRC32sum(filename string, _ int, poly string) (string, error)
- func CRC64Reader(reader io.Reader, _ int, poly string) (string, error)
- func CRC64sum(filename string, _ int, poly string) (string, error)
- func FNVasum(filename string, bytes int, _ string) (string, error)
- func FNVasumReader(reader io.Reader, bytes int, _ string) (string, error)
- func FNVsum(filename string, bytes int, _ string) (string, error)
- func FNVsumReader(reader io.Reader, bytes int, _ string) (string, error)
- func MD5sum(filename string, _ int, _ string) (string, error)
- func MD5sumReader(reader io.Reader, _ int, _ string) (string, error)
- func SHA1sum(filename string, _ int, _ string) (string, error)
- func SHA1sumReader(reader io.Reader, _ int, _ string) (string, error)
- func SHA2sum(filename string, bytes int, _ string) (string, error)
- func SHA2sumReader(reader io.Reader, bytes int, _ string) (string, error)
- func SHA3sum(filename string, bytes int, _ string) (string, error)
- func SHA3sumReader(reader io.Reader, bytes int, _ string) (string, error)
- func XXHsum(filename string, bytes int, _ string) (string, error)
- func XXHsumReader(reader io.Reader, bytes int, _ string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adler32sum ¶ added in v1.8.0
Adler32sum returns XXH checksum of content in reader bytes: 32
func Adler32sumReader ¶ added in v1.8.0
Adler32sumReader returns XXH checksum of content in reader bytes: 32
func BLAKE2Bsum ¶ added in v1.7.0
BLAKE2Bsum returns BLAKE2b checksum of filename bytes: 256, 384, 512
func BLAKE2BsumReader ¶ added in v1.7.0
BLAKE2BsumReader returns BLAKE2b checksum of content in reader bytes: 256, 384, 512
func BLAKE3sumReader ¶ added in v1.7.0
BLAKE3sumReader returns BLAKE3 checksum of content in reader bytes: 256, 384, 512
func CRC32Reader ¶ added in v1.7.0
CRC32Reader returns CRC32 checksum of content in reader bytes:
func CRC64Reader ¶ added in v1.7.0
CRC64Reader returns CRC64 checksum of content in reader bytes:
func FNVasumReader ¶ added in v1.8.0
FNVasumReader returns XXH checksum of content in reader bytes: 32, 64, 128
func FNVsumReader ¶ added in v1.8.0
FNVsumReader returns XXH checksum of content in reader bytes: 32, 64, 128
func MD5sumReader ¶
MD5sumReader returns MD5 checksum of content in reader bytes:
func SHA1sumReader ¶
SHA1sumReader returns SHA-1 checksum of content in reader bytes:
func SHA2sumReader ¶ added in v1.6.0
SHA2sumReader returns SHA-2 checksum of content in reader bytes: 224, 256, 384, 512
func SHA3sumReader ¶
SHA3sumReader returns SHA-3 checksum of content in reader bytes: 224, 256, 384, 512
func XXHsum ¶ added in v1.6.0
XXHsum returns XXH(32/64) checksum of filenamePackage crc32 implements the 32-bit cyclic redundancy check, or CRC-32, checksum. See https://en.wikipedia.org/wiki/Cyclic_redundancy_check for information. bytes: 32, 64
Types ¶
This section is empty.