Adding documentation to each component of CipherSuite

This commit is contained in:
Kevin Lewi
2020-06-15 16:40:46 -07:00
parent ab1b1d6209
commit 2cf6808665
+4
View File
@@ -15,6 +15,10 @@ use generic_array::typenum::{U32, U64};
use rand_core::{CryptoRng, RngCore};
/// Configures the underlying primitives used in OPAQUE
/// * Aead: an authenticated encryption scheme
/// * Group: a finite cyclic group along with a point representation
/// * KeyFormat: a keypair type composed of public and private components
/// * SlowHash: a slow hashing function, typically used for password hashing
pub trait CipherSuite {
type Aead: aead::NewAead<KeySize = U32> + aead::Aead;
type Group: Group<ScalarLen = U32, UniformBytesLen = U64>;