DecryptionKey

Trait DecryptionKey 

Source
pub trait DecryptionKey<P>: Key<P> {
    // Required method
    fn decrypt(&self, ciphertext: &Self::Ciphertext) -> P;
}

Required Methods§

Source

fn decrypt(&self, ciphertext: &Self::Ciphertext) -> P

Implementors§

Source§

impl<const H: usize, const H_UNSAT: usize, const S: usize, const S_UNSAT: usize, const D: usize, const D_UNSAT: usize, const Q: usize> DecryptionKey<Uint<S>> for SecretKey<H, S, D>
where Uint<H>: Concat<Output = Uint<S>>, Odd<Uint<H>>: PrecomputeInverter<Inverter = SafeGcdInverter<H, H_UNSAT>>, Uint<S>: Split<Output = Uint<H>> + Concat<Output = Uint<D>>, Odd<Uint<S>>: PrecomputeInverter<Inverter = SafeGcdInverter<S, S_UNSAT>>, Uint<D>: Split<Output = Uint<S>> + Concat<Output = Uint<Q>>, Odd<Uint<D>>: PrecomputeInverter<Inverter = SafeGcdInverter<D, D_UNSAT>>, Uint<Q>: Split<Output = Uint<D>>,