github.com/waltonchain/waltonchain_gwtc_src@v1.1.4-0.20201225072101-8a298c95a819/crypto/hash/digest.go (about) 1 // Use of this source code is governed by an ISC 2 // license that can be found in the LICENSE file. 3 4 package hash 5 6 type Digest interface { 7 // See hash.Hash 8 Hash 9 10 // Close the digest by writing the last bits and storing the hash 11 // in dst. This prepares the digest for reuse, calls Hash.Reset. 12 Close(dst []byte, bits uint8, bcnt uint8) error 13 }