Discover Packages
github.com/hyper-fi/bytom
crypto
sha3pool
package
Version:
v1.0.10
Opens a new window with list of versions in this module.
Published: Oct 24, 2019
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package sha3pool is a freelist for SHA3-256 hash objects.
Get256 returns an initialized SHA3-256 hash ready to use.
It is like sha3.New256 except it uses the freelist.
The caller should call Put256 when finished with the returned object.
Put256 resets h and puts it in the freelist.
func Sum256(hash, data []byte )
Sum256 uses a ShakeHash from the pool to sum into hash.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.