sha3

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sha3 provides ZKP circuits for SHA3 hash algorithms applying sponge construction over Keccak f-[1600] permutation function.

Instances correspond golang.org/x/crypto/sha3, except SHA224, which is not x64 compatible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New256

func New256(api frontend.API) (hash.BinaryHasher, error)

New256 creates a new SHA3-256 hash. Its generic security strength is 256 bits against preimage attacks, and 128 bits against collision attacks.

func New384

func New384(api frontend.API) (hash.BinaryHasher, error)

New384 creates a new SHA3-384 hash. Its generic security strength is 384 bits against preimage attacks, and 192 bits against collision attacks.

func New512

func New512(api frontend.API) (hash.BinaryHasher, error)

New512 creates a new SHA3-512 hash. Its generic security strength is 512 bits against preimage attacks, and 256 bits against collision attacks.

func NewLegacyKeccak256

func NewLegacyKeccak256(api frontend.API) (hash.BinaryHasher, error)

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(api frontend.API) (hash.BinaryHasher, error)

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