Structs§
- Baby
Bear Internal Layer Parameters - Contains data needed to define the internal layers of the Poseidon2 permutation.
- Baby
Bear Parameters - Baby
Bear Poseidon Parameters - Parameters for the Poseidon1 internal layer on BabyBear.
- MDSBaby
Bear Data
Constants§
- BABYBEAR_
POSEIDO N1_ HALF_ FULL_ ROUNDS - Number of full rounds per half for BabyBear Poseidon1 (
RF / 2). - BABYBEAR_
POSEIDO N1_ PARTIAL_ ROUNDS_ 16 - Number of partial rounds for BabyBear Poseidon1 (width 16).
- BABYBEAR_
POSEIDO N1_ PARTIAL_ ROUNDS_ 24 - Number of partial rounds for BabyBear Poseidon1 (width 24).
- BABYBEAR_
POSEIDO N1_ RC_ 16 - Round constants for width-16 Poseidon1 on BabyBear.
- BABYBEAR_
POSEIDO N1_ RC_ 24 - Round constants for width-24 Poseidon1 on BabyBear.
- BABYBEAR_
POSEIDO N2_ HALF_ FULL_ ROUNDS - Number of full rounds per half for BabyBear Poseidon2 (
RF / 2). - BABYBEAR_
POSEIDO N2_ PARTIAL_ ROUNDS_ 16 - Number of partial rounds for BabyBear Poseidon2 (width 16).
- BABYBEAR_
POSEIDO N2_ PARTIAL_ ROUNDS_ 24 - Number of partial rounds for BabyBear Poseidon2 (width 24).
- BABYBEAR_
POSEIDO N2_ RC_ 16_ EXTERNAL_ FINAL - Round constants for width-16 Poseidon2 on BabyBear.
- BABYBEAR_
POSEIDO N2_ RC_ 16_ EXTERNAL_ INITIAL - Round constants for width-16 Poseidon2 on BabyBear.
- BABYBEAR_
POSEIDO N2_ RC_ 16_ INTERNAL - Round constants for width-16 Poseidon2 on BabyBear.
- BABYBEAR_
POSEIDO N2_ RC_ 24_ EXTERNAL_ FINAL - Round constants for width-24 Poseidon2 on BabyBear.
- BABYBEAR_
POSEIDO N2_ RC_ 24_ EXTERNAL_ INITIAL - Round constants for width-24 Poseidon2 on BabyBear.
- BABYBEAR_
POSEIDO N2_ RC_ 24_ INTERNAL - Round constants for width-24 Poseidon2 on BabyBear.
- BABYBEAR_
S_ BOX_ DEGREE - S-box degree for BabyBear Poseidon1.
Functions§
- default_
babybear_ poseidon1_ 16 - Create a default width-16 Poseidon1 permutation for BabyBear.
- default_
babybear_ poseidon1_ 24 - Create a default width-24 Poseidon1 permutation for BabyBear.
- default_
babybear_ poseidon2_ 16 - Create a default width-16 Poseidon2 permutation for BabyBear.
- default_
babybear_ poseidon2_ 24 - Create a default width-24 Poseidon2 permutation for BabyBear.
Type Aliases§
- Baby
Bear - The prime field
2^31 - 2^27 + 1, a.k.a. the Baby Bear field. - Generic
Poseidon1 Linear Layers Baby Bear - Generic Poseidon1 linear layers for BabyBear.
- Generic
Poseidon2 Linear Layers Baby Bear - An implementation of the matrix multiplications in the internal and external layers of Poseidon2.
- MdsMatrix
Baby Bear - Poseidon1
Baby Bear - The Poseidon1 permutation for BabyBear.
- Poseidon1
External Layer Baby Bear - External (full round) layer for BabyBear Poseidon1.
- Poseidon1
Internal Layer Baby Bear - Internal (partial round) layer for BabyBear Poseidon1.
- Poseidon2
Baby Bear - An implementation of the Poseidon2 hash function specialised to run on the current architecture.
- Poseidon2
External Layer Baby Bear - Poseidon2
Internal Layer Baby Bear