keccakf

package
v0.0.0-...-70ee9f5 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: 1 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/aakash4dev/gnark2/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(uapi *uints.BinaryField[uints.U64], input [25]uints.U64) [25]uints.U64

Permute applies Keccak-F permutation on the input and returns the permuted vector. Original input is not modified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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