keccak256

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Overview

Package keccak256 provides hashing using the Keccak256 system.

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 (*Keccak256) Hash(data ...[]byte) []byte

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

func (*Keccak256) HashLength

func (*Keccak256) HashLength() int

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

func (*Keccak256) HashName

func (*Keccak256) HashName() string

HashName returns the name of this hash.

Jump to

Keyboard shortcuts

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