Skip to main content

Entropy

Trait Entropy 

Source
pub trait Entropy<P: Purpose> {
    // Required methods
    fn word<const LANE: u64>(&self, input: u64) -> Word<P, LANE>;
    fn permute<const LANE: u64>(&self, value: u64) -> Word<P, LANE>;
    fn hash_seed<const LANE: u64>(&self) -> HashSeed;
}
Expand description

Keyed words and permutations supplied by a purpose-bound random owner. Word generation and permutation rounds occupy separate domains even when their compile-time lane is the same.

Required Methods§

Source

fn word<const LANE: u64>(&self, input: u64) -> Word<P, LANE>

Source

fn permute<const LANE: u64>(&self, value: u64) -> Word<P, LANE>

Source

fn hash_seed<const LANE: u64>(&self) -> HashSeed

Derives an independent owned hash key, without exporting the root or its driver capability. Hash keys occupy a separate domain from public words and permutations, including when their compile-time lane is the same.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P: Purpose> Entropy<P> for Process<P>

Source§

impl<P: Purpose> Entropy<P> for Root<'_, P>