Skip to main content

Crate slop_poseidon2

Crate slop_poseidon2 

Source

Structs§

HLMDSMat4
MDSMat4
Poseidon2
The Poseidon2 permutation.
Poseidon2ExternalMatrixGeneral
Poseidon2ExternalMatrixHL

Traits§

DiffusionPermutation
MdsLightPermutation
For the external layers we use a matrix of the form circ(2M_4, M_4, …, M_4) Where M_4 is a 4 x 4 MDS matrix. This leads to a permutation which has slightly weaker properties to MDS

Functions§

matmul_internal
poseidon2_round_numbers_128
Given a field, a width and an D return the number of full and partial rounds needed to achieve 128 bit security.