blob: 717d860d50571ba5233ead992955f1fec4d8ffa2 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//go:build !amd64 || purego
package adler32
import (
"hash"
"hash/adler32"
)
// The size of an Adler-32 checksum in bytes.
const Size = 4
// New returns a new hash.Hash32 computing the Adler-32 checksum.
func New() hash.Hash32 {
return adler32.New()
}
// Checksum returns the Adler-32 checksum of data.
func Checksum(data []byte) uint32 { return adler32.Checksum(data) }
|