Crate p3_baby_bear

Crate p3_baby_bear 

Source

Structs§

BabyBearInternalLayerParameters
Contains data needed to define the internal layers of the Poseidon2 permutation.
BabyBearParameters
MDSBabyBearData

Constants§

BABYBEAR_RC16_EXTERNAL_FINAL
Final round constants for the 16-width Poseidon2’s external layer on BabyBear.
BABYBEAR_RC16_EXTERNAL_INITIAL
Initial round constants for the 16-width Poseidon2 external layer on BabyBear.
BABYBEAR_RC16_INTERNAL
Round constants for the 16-width Poseidon2’s internal layer on BabyBear.
BABYBEAR_RC24_EXTERNAL_FINAL
Final round constants for the 24-width Poseidon2’s external layer on BabyBear.
BABYBEAR_RC24_EXTERNAL_INITIAL
Initial round constants for the 24-width Poseidon2 external layer on BabyBear.
BABYBEAR_RC24_INTERNAL
Round constants for the 24-width Poseidon2’s internal layer on BabyBear.

Functions§

default_babybear_poseidon2_16
A default Poseidon2 for BabyBear using the round constants from the Horizon Labs implementation.
default_babybear_poseidon2_24
A default Poseidon2 for BabyBear using the round constants from the Horizon Labs implementation.

Type Aliases§

BabyBear
The prime field 2^31 - 2^27 + 1, a.k.a. the Baby Bear field.
GenericPoseidon2LinearLayersBabyBear
An implementation of the matrix multiplications in the internal and external layers of Poseidon2.
MdsMatrixBabyBear
Poseidon2BabyBear
An implementation of the Poseidon2 hash function specialised to run on the current architecture.
Poseidon2ExternalLayerBabyBear
Poseidon2InternalLayerBabyBear