We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75c58c4 commit 029c74dCopy full SHA for 029c74d
1 file changed
src/traits.rs
@@ -166,6 +166,7 @@ pub trait AE {
166
fn decrypt(key: &Self::Key, ctx: &Self::Ciphertext) -> Result<Self::Plaintext, Self::Error>;
167
}
168
169
+/// Key-Encapsulation Mechanism.
170
pub trait Kem {
171
type SessionKey;
172
type Encapsulation;
@@ -194,6 +195,7 @@ pub trait Kem {
194
195
) -> Result<Self::SessionKey, Self::Error>;
196
197
198
+/// Non-Interactive Key Exchange.
199
pub trait Nike {
200
201
type SecretKey;
@@ -213,6 +215,7 @@ pub trait Nike {
213
215
214
216
217
218
+/// Non-Interactive Key Exchange which public keys for a cyclic group.
219
pub trait KeyHomomorphicNike: Nike
220
where
221
Self::PublicKey: CyclicGroup<Multiplicity = Self::SecretKey>,
0 commit comments