Home | History | Annotate | Download | only in hash

Lines Matching full:hash

5 // Package hash provides interfaces for hash functions.
6 package hash
10 // Hash is the common interface implemented by all hash functions.
12 // Hash implementations in the standard library (e.g. hash/crc32 and
14 // encoding.BinaryUnmarshaler interfaces. Marshaling a hash implementation
16 // later, without having to re-write the data previously written to the hash.
17 // The hash state may contain portions of the input in its original form,
20 // Compatibility: Any future changes to hash or crypto packages will endeavor
26 type Hash interface {
27 // Write (via the embedded io.Writer interface) adds more data to the running hash.
31 // Sum appends the current hash to b and returns the resulting slice.
32 // It does not change the underlying hash state.
35 // Reset resets the Hash to its initial state.
41 // BlockSize returns the hash's underlying block size.
48 // Hash32 is the common interface implemented by all 32-bit hash functions.
50 Hash
54 // Hash64 is the common interface implemented by all 64-bit hash functions.
56 Hash