sha3pool

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sha3pool is a freelist for SHA3-256 hash objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get256

func Get256() sha3.ShakeHash

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.

func Put256

func Put256(h sha3.ShakeHash)

Put256 resets h and puts it in the freelist.

func Sum256

func Sum256(hash, data []byte)

Sum256 uses a ShakeHash from the pool to sum into hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL