Trait CryptographicPermutation

Source
pub trait CryptographicPermutation<T: Clone>: Permutation<T> { }
Expand description

A permutation thought to be cryptographically secure, in the sense that it is thought to be difficult to distinguish (in a nontrivial way) from a random permutation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<FA, Mds, const WIDTH: usize, const ALPHA: u64> CryptographicPermutation<[FA; WIDTH]> for Poseidon<FA::F, Mds, WIDTH, ALPHA>
where FA: FieldAlgebra, FA::F: PrimeField, Mds: MdsPermutation<FA, WIDTH>,

impl<FA, ExternalPerm, InternalPerm, const WIDTH: usize, const D: u64> CryptographicPermutation<[FA; WIDTH]> for Poseidon2<<FA::F as Field>::Packing, ExternalPerm, InternalPerm, WIDTH, D>
where FA: FieldAlgebra + Sync, FA::F: PrimeField, ExternalPerm: ExternalLayer<FA, WIDTH, D>, InternalPerm: InternalLayer<FA, WIDTH, D>,