pub struct PoseidonDefaultParametersEntry {
pub rate: usize,
pub alpha: usize,
pub full_rounds: usize,
pub partial_rounds: usize,
pub skip_matrices: usize,
}Expand description
An entry in the default Poseidon parameters
Fields
rate: usizeThe rate (in terms of number of field elements).
alpha: usizeExponent used in S-boxes.
full_rounds: usizeNumber of rounds in a full-round operation.
partial_rounds: usizeNumber of rounds in a partial-round operation.
skip_matrices: usizeNumber of matrices to skip when generating parameters using the Grain LFSR.
The matrices being skipped are those that do not satisfy all the desired properties. See the reference implementation for more detail.
Implementations
Auto Trait Implementations
impl RefUnwindSafe for PoseidonDefaultParametersEntry
impl Send for PoseidonDefaultParametersEntry
impl Sync for PoseidonDefaultParametersEntry
impl Unpin for PoseidonDefaultParametersEntry
impl UnwindSafe for PoseidonDefaultParametersEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more