1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 // Hash is the common interface implemented by all hash functions.
11 // Write adds more data to the running hash.
12 // It never returns an error.
15 // Sum returns the current hash, without changing the
16 // underlying hash state.
19 // Reset resets the hash to one with zero bytes written.
22 // Size returns the number of bytes Sum will return.
26 // Hash32 is the common interface implemented by all 32-bit hash functions.
27 type Hash32
interface {
32 // Hash64 is the common interface implemented by all 64-bit hash functions.
33 type Hash64
interface {