poseidon2_round_numbers_128

Function poseidon2_round_numbers_128 

Source
pub const fn poseidon2_round_numbers_128<F: PrimeField64>(
    width: usize,
    d: u64,
) -> Result<(usize, usize), &'static str>
Expand description

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

If d is not a valid permutation of the given field or the optimal parameters for that size of prime have not been computed, an error is returned.