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§
Sourcetype Encapsulator: Encapsulate + Clone + KemParams
type Encapsulator: Encapsulate + Clone + KemParams
Encapsulator which corresponds to this decapsulator.
Required Methods§
Sourcefn encapsulator(&self) -> &Self::Encapsulator
fn encapsulator(&self) -> &Self::Encapsulator
Retrieve the encapsulator associated with this decapsulator.