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, bits int, _ string) (string, error)
- func BLAKE2BsumReader(reader io.Reader, bytes int, _ string) (string, error)
- func BLAKE3sum(filename string, bits 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 CRC8Reader(reader io.Reader, _ int, poly string) (string, error)
- func CRC8Sum(reader io.Reader, _ int, poly string) (string, error)
- func FNVasum(filename string, bits int, _ string) (string, error)
- func FNVasumReader(reader io.Reader, bytes int, _ string) (string, error)
- func FNVsum(filename string, bits int, _ string) (string, error)
- func FNVsumReader(reader io.Reader, bytes int, _ string) (string, error)
- func LESum(filename string, bits int, _ string) (string, error)
- func LESumReader(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, bits int, _ string) (string, error)
- func SHA2sumReader(reader io.Reader, bytes int, _ string) (string, error)
- func SHA3sum(filename string, bits int, _ string) (string, error)
- func SHA3sumReader(reader io.Reader, bytes int, _ string) (string, error)
- func XXHsum(filename string, bits 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 ¶
Adler32sum returns XXH checksum of content in reader bits: 32
func Adler32sumReader ¶
Adler32sumReader returns XXH checksum of content in reader bytes: 32
func BLAKE2Bsum ¶
BLAKE2Bsum returns BLAKE2b checksum of filename bits: 256, 384, 512
func BLAKE2BsumReader ¶
BLAKE2BsumReader returns BLAKE2b checksum of content in reader bytes: 256, 384, 512
func BLAKE3sumReader ¶
BLAKE3sumReader returns BLAKE3 checksum of content in reader bytes: 256, 384, 512
func CRC32Reader ¶
CRC32Reader returns CRC32 checksum of content in reader bytes:
func CRC64Reader ¶
CRC64Reader returns CRC64 checksum of content in reader bytes:
func FNVasumReader ¶
FNVasumReader returns XXH checksum of content in reader bytes: 32, 64, 128
func FNVsumReader ¶
FNVsumReader returns XXH checksum of content in reader bytes: 32, 64, 128
func LESumReader ¶
LESumReader returns 8 or 32 bit little-endian checksum of content in reader bits: 32
func MD5sumReader ¶
MD5sumReader returns MD5 checksum of content in reader bytes: 128
func SHA1sumReader ¶
SHA1sumReader returns SHA-1 checksum of content in reader bytes: 160
func SHA2sumReader ¶
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
Types ¶
This section is empty.