keccak

package
v1.10.72 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: GPL-3.0, LGPL-3.0, GPL-3.0, + 1 more Imports: 6 Imported by: 0

README

This is a vendored and modified copy of golang.org/x/crypto/sha3, with an assembly implementation of keccak256. We wish to retain the assembly implementation, which was removed in v0.44.0.

Ethereum uses a 'legacy' variant of Keccak, which was defined before it became SHA3. As such, we cannot use the standard library crypto/sha3 package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLegacyKeccak256

func NewLegacyKeccak256() hash.Hash

NewLegacyKeccak256 creates a new Keccak-256 hash.

Only use this function if you require compatibility with an existing cryptosystem that uses non-standard padding. All other users should use New256 instead.

func NewLegacyKeccak512

func NewLegacyKeccak512() hash.Hash

NewLegacyKeccak512 creates a new Keccak-512 hash.

Only use this function if you require compatibility with an existing cryptosystem that uses non-standard padding. All other users should use New512 instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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