Type Alias AnemoiBls12_381_2_1

Source
pub type AnemoiBls12_381_2_1 = AnemoiState<Felt, 2, 1>;

Aliased Type§

struct AnemoiBls12_381_2_1(/* private fields */);

Trait Implementations

Source§

impl<F: Field, const R: usize, const N: usize> AsMut<[F]> for AnemoiState<F, R, N>

Source§

fn as_mut(&mut self) -> &mut [F]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<F: Field, const R: usize, const N: usize> AsRef<[F]> for AnemoiState<F, R, N>

Source§

fn as_ref(&self) -> &[F]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<F: Clone + Field, const R: usize, const N: usize> Clone for AnemoiState<F, R, N>

Source§

fn clone(&self) -> AnemoiState<F, R, N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<F: Field, const N: usize, const R: usize> Default for AnemoiState<F, R, N>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Permutation for AnemoiState<Felt, { _AnemoiBls12_381_2_1::RATE }, { _AnemoiBls12_381_2_1::WIDTH }>

Source§

const N: usize = 2usize

The width of the sponge, equal to rate Permutation::R plus capacity. Cannot be less than 1. Cannot be less than Permutation::R.
Source§

const R: usize = 1usize

The rate of the sponge.
Source§

type U = Fp<MontBackend<FqConfig, 6>, 6>

The basic unit over which the sponge operates.
Source§

fn new(iv: [u8; 32]) -> Self

Initialize the state of the sponge using 32 bytes of seed.
Source§

fn permute(&mut self)

Permute the state of the sponge.
Source§

impl<F, const R: usize, const N: usize> Zeroize for AnemoiState<F, R, N>
where F: Zeroize + Field,

Source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.