jf_rescue

Trait RescueParameter

Source
pub trait RescueParameter: PrimeField + Absorb {
    const A: u64;
    const A_INV: &'static [u64];
    const MDS_LE: [[&'static [u8]; 4]; 4];
    const INIT_VEC_LE: [&'static [u8]; 4];
    const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24];
    const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25];
}
Expand description

This trait defines constants that are used for rescue hash functions.

Required Associated Constants§

Source

const A: u64

parameter A, a.k.a., alpha

Source

const A_INV: &'static [u64]

parameter A^-1

Source

const MDS_LE: [[&'static [u8]; 4]; 4]

MDS matrix

Source

const INIT_VEC_LE: [&'static [u8]; 4]

Initial vector.

Source

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24]

Injected keys for each round.

Source

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25]

Permutation keys.

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.

Implementations on Foreign Types§

Source§

impl RescueParameter for Fq

Source§

const A: u64 = 5u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Source§

impl RescueParameter for Fq

This is a dummy implementation of Rescue parameters to satisfy trait bound for Fq. This code should not be used for any other purpose.

Source§

const A: u64 = 5u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Source§

impl RescueParameter for Fq

Source§

const A: u64 = 5u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Source§

impl RescueParameter for Fq

This is a dummy implementation of Rescue parameters to satisfy trait bound for Fq. This code should not be used for any other purpose.

Source§

const A: u64 = 5u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Source§

impl RescueParameter for Fq

Source§

const A: u64 = 11u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Source§

impl RescueParameter for Fq

Source§

const A: u64 = 5u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Source§

impl RescueParameter for Fq

Source§

const A: u64 = 5u64

Source§

const A_INV: &'static [u64] = _

Source§

const MDS_LE: [[&'static [u8]; 4]; 4] = _

Source§

const INIT_VEC_LE: [&'static [u8]; 4] = _

Source§

const KEY_INJECTION_LE: [[&'static [u8]; 4]; 24] = _

Source§

const PERMUTATION_ROUND_KEYS: [[&'static [u8]; 4]; 25] = _

Implementors§