keccak

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keccak

type Keccak struct {
}

Keccak is a sha3-Keccak implementation of the hasher interface.

func (Keccak) Compute

func (k Keccak) Compute(s string) []byte

Compute takes a string, and returns the sha3-Keccak hash of that string

func (Keccak) EmptyHash

func (k Keccak) EmptyHash() []byte

EmptyHash returns the sha3-Keccak hash of the empty string

func (Keccak) IsInterfaceNil

func (k Keccak) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (Keccak) Size

func (Keccak) Size() int

Size returns the size, in number of bytes, of a sha3-Keccak hash

Jump to

Keyboard shortcuts

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