| // Copyright 2009 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // Package hash provides interfaces for hash functions. |
| // Hash is the common interface implemented by all hash functions. |
| // Write adds more data to the running hash. |
| // It never returns an error. |
| // Sum returns the current hash, without changing the |
| // underlying hash state. |
| // Reset resets the hash to one with zero bytes written. |
| // Size returns the number of bytes Sum will return. |
| // Hash32 is the common interface implemented by all 32-bit hash functions. |
| // Hash64 is the common interface implemented by all 64-bit hash functions. |