We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Decapsulator::encapsulator
1 parent f992c56 commit 54b5144Copy full SHA for 54b5144
1 file changed
kem/src/lib.rs
@@ -68,10 +68,11 @@ pub trait Encapsulate: Kem + TryKeyInit + KeyExport {
68
pub trait Decapsulator: Kem {
69
/// Encapsulator which corresponds to this decapsulator.
70
type Encapsulator: Encapsulate
71
+ + Clone
72
+ Kem<CiphertextSize = Self::CiphertextSize, SharedSecretSize = Self::SharedSecretSize>;
73
74
/// Retrieve the encapsulator associated with this decapsulator.
- fn encapsulator(&self) -> Self::Encapsulator;
75
+ fn encapsulator(&self) -> &Self::Encapsulator;
76
}
77
78
/// Decapsulator for encapsulated keys, with an associated `Encapsulator` bounded by the
0 commit comments