Decapsulator

Trait Decapsulator 

Source
pub trait Decapsulator: KemParams<CiphertextSize = <Self::Encapsulator as KemParams>::CiphertextSize, SharedSecretSize = <Self::Encapsulator as KemParams>::SharedSecretSize> {
    type Encapsulator: Encapsulate + Clone + KemParams;

    // Required method
    fn encapsulator(&self) -> &Self::Encapsulator;
}
Expand description

Trait for decapsulators, which is a supertrait bound of both Decapsulate and TryDecapsulate.

Required Associated Types§

Source

type Encapsulator: Encapsulate + Clone + KemParams

Encapsulator which corresponds to this decapsulator.

Required Methods§

Source

fn encapsulator(&self) -> &Self::Encapsulator

Retrieve the encapsulator associated with this decapsulator.

Implementations on Foreign Types§

Source§

impl<P> Decapsulator for DecapsulationKey<P>
where P: KemParams,

Implementors§