Crate p3_koala_bear

Crate p3_koala_bear 

Source

Structs§

KoalaBearInternalLayerParameters
Contains data needed to define the internal layers of the Poseidon2 permutation.
KoalaBearParameters

Constants§

KOALABEAR_RC16_EXTERNAL_FINAL
Final round constants for the 16-width Poseidon2’s external layer on KoalaBear.
KOALABEAR_RC16_EXTERNAL_INITIAL
Initial round constants for the 16-width Poseidon2 external layer on KoalaBear.
KOALABEAR_RC16_INTERNAL
Round constants for the 16-width Poseidon2’s internal layer on KoalaBear.
KOALABEAR_RC24_EXTERNAL_FINAL
Final round constants for the 24-width Poseidon2’s external layer on KoalaBear.
KOALABEAR_RC24_EXTERNAL_INITIAL
Initial round constants for the 24-width Poseidon2 external layer on KoalaBear.
KOALABEAR_RC24_INTERNAL
Round constants for the 24-width Poseidon2’s internal layer on KoalaBear.

Functions§

default_koalabear_poseidon2_16
A default Poseidon2 for KoalaBear using the round constants from the original specification.
default_koalabear_poseidon2_24
A default Poseidon2 for KoalaBear using the round constants from the original specification.

Type Aliases§

GenericPoseidon2LinearLayersKoalaBear
An implementation of the matrix multiplications in the internal and external layers of Poseidon2.
KoalaBear
The prime field 2^31 - 2^24 + 1, a.k.a. the Koala Bear field.
Poseidon2ExternalLayerKoalaBear
Poseidon2InternalLayerKoalaBear
Poseidon2KoalaBear
An implementation of the Poseidon2 hash function specialised to run on the current architecture.