Home | History | Annotate | Download | only in adler32

Lines Matching refs:digest

29 // digest represents the partial evaluation of a checksum.
31 type digest uint32
33 func (d *digest) Reset() { *d = 1 }
37 d := new(digest)
42 func (d *digest) Size() int { return Size }
44 func (d *digest) BlockSize() int { return 1 }
47 func update(d digest, p []byte) digest {
62 return digest(s2<<16 | s1)
65 func (d *digest) Write(p []byte) (nn int, err error) {
70 func (d *digest) Sum32() uint32 { return uint32(*d) }
72 func (d *digest) Sum(in []byte) []byte {