keccakf

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

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/consensys/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(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