keccak256

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keccak256

type Keccak256 struct{}

Keccak256 is the Keccak-256 hashing method.

func New

func New() *Keccak256

New creates a new Keccak-256 hashing method.

func (*Keccak256) Hash

func (h *Keccak256) Hash(data ...[]byte) []byte

Hash generates a Keccak-256 hash from a byte array.

func (*Keccak256) HashLength

func (h *Keccak256) HashLength() int

HashLength returns the length of hashes generated by Hash() in bytes.

Jump to

Keyboard shortcuts

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