Skip to content

Commit 029c74d

Browse files
committed
explicit the names of cryptographic traits
1 parent 75c58c4 commit 029c74d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/traits.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ pub trait AE {
166166
fn decrypt(key: &Self::Key, ctx: &Self::Ciphertext) -> Result<Self::Plaintext, Self::Error>;
167167
}
168168

169+
/// Key-Encapsulation Mechanism.
169170
pub trait Kem {
170171
type SessionKey;
171172
type Encapsulation;
@@ -194,6 +195,7 @@ pub trait Kem {
194195
) -> Result<Self::SessionKey, Self::Error>;
195196
}
196197

198+
/// Non-Interactive Key Exchange.
197199
pub trait Nike {
198200
type SessionKey;
199201
type SecretKey;
@@ -213,6 +215,7 @@ pub trait Nike {
213215
) -> Result<Self::SessionKey, Self::Error>;
214216
}
215217

218+
/// Non-Interactive Key Exchange which public keys for a cyclic group.
216219
pub trait KeyHomomorphicNike: Nike
217220
where
218221
Self::PublicKey: CyclicGroup<Multiplicity = Self::SecretKey>,

0 commit comments

Comments
 (0)