sha3

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 SHA256

type SHA256 struct{}

SHA3 is the Sha3 hashing method.

func New256

func New256() *SHA256

New creates a new Sha3 hashing method.

func (*SHA256) Hash

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

Hash generates a SHA3 hash from input byte arrays.

func (*SHA256) HashLength

func (h *SHA256) HashLength() int

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

type SHA512

type SHA512 struct{}

SHA3 is the Sha3 hashing method.

func New512

func New512() *SHA512

New creates a new Sha3 hashing method.

func (*SHA512) Hash

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

Hash generates a SHA3 hash from input byte arrays.

func (*SHA512) HashLength

func (h *SHA512) 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