sha3

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: 3

Documentation

Overview

Package sha3 provides hashing using the SHA3 system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SHA256

type SHA256 struct{}

SHA256 is the 256-bit SHA3 hashing method.

func New256

func New256() *SHA256

New256 creates a new 256-bit SHA3 hashing method.

func (*SHA256) Hash

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

Hash generates a SHA3 hash from input byte arrays.

func (*SHA256) HashLength

func (*SHA256) HashLength() int

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

func (*SHA256) HashName

func (*SHA256) HashName() string

HashName returns the name of this hash.

type SHA512

type SHA512 struct{}

SHA512 is the 512-bit SHA3 hashing method.

func New512

func New512() *SHA512

New512 creates a new 512-bit SHA3 hashing method.

func (*SHA512) Hash

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

Hash generates a SHA3 hash from input byte arrays.

func (*SHA512) HashLength

func (*SHA512) HashLength() int

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

func (*SHA512) HashName

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