keccakf

package
v0.0.0-...-ae8e47d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package keccakf implements the KeccakF-1600 permutation function.

This package exposes only the permutation primitive. For SHA3, SHAKE3 etc. functions it is necessary to apply the sponge construction. The constructions will be implemented in future in github.com/BeratOz01/gnark/std/hash/sha3 package.

The cost for a single application of permutation is:

  • 193650 constraints in Groth16
  • 292032 constraints in Plonk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Permute

func Permute(api frontend.API, a [25]frontend.Variable) [25]frontend.Variable

Permute applies Keccak-F permutation on the input a and returns the permuted vector. The input array must consist of 64-bit (unsigned) integers. The returned array also contains 64-bit unsigned integers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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