| // 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 (via the embedded io.Writer interface) adds more data to the running hash. |
| // It never returns an error. |
| // Sum appends the current hash to b and returns the resulting slice. |
| // It does not change the underlying hash state. |
| // Reset resets the Hash to its initial state. |
| // Size returns the number of bytes Sum will return. |
| // BlockSize returns the hash's underlying block size. |
| // The Write method must be able to accept any amount |
| // of data, but it may operate more efficiently if all writes |
| // are a multiple of the block size. |
| // Hash32 is the common interface implemented by all 32-bit hash functions. |
| // Hash64 is the common interface implemented by all 64-bit hash functions. |