Trait franklin_crypto::rescue::RescueHashParams

source ·
pub trait RescueHashParams<E: Engine>: RescueParamsInternal<E> {
    type SBox0: PlonkCsSBox<E>;
    type SBox1: PlonkCsSBox<E>;

Show 13 methods // Required methods fn capacity(&self) -> u32; fn rate(&self) -> u32; fn num_rounds(&self) -> u32; fn round_constants(&self, round: u32) -> &[E::Fr]; fn mds_matrix_row(&self, row: u32) -> &[E::Fr]; fn security_level(&self) -> u32; fn sbox_0(&self) -> &Self::SBox0; fn sbox_1(&self) -> &Self::SBox1; // Provided methods fn state_width(&self) -> u32 { ... } fn output_len(&self) -> u32 { ... } fn absorbtion_cycle_len(&self) -> u32 { ... } fn compression_rate(&self) -> u32 { ... } fn can_use_custom_gates(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

source

fn capacity(&self) -> u32

source

fn rate(&self) -> u32

source

fn num_rounds(&self) -> u32

source

fn round_constants(&self, round: u32) -> &[E::Fr]

source

fn mds_matrix_row(&self, row: u32) -> &[E::Fr]

source

fn security_level(&self) -> u32

source

fn sbox_0(&self) -> &Self::SBox0

source

fn sbox_1(&self) -> &Self::SBox1

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§