Remove the last superfluous constant

This required purgin the usage of the low-level Key access, but now we
should be able to replace the Key type piecemeal.
This commit is contained in:
François Garillot
2020-09-22 08:50:39 -04:00
parent 39ec88674a
commit 40ea015d6d
3 changed files with 32 additions and 25 deletions
+3 -7
View File
@@ -6,12 +6,8 @@
//! Defines the CipherSuite trait to specify the underlying primitives for OPAQUE
use crate::{
errors::InternalPakeError,
hash::Hash,
key_exchange::traits::KeyExchange,
keypair::{Key, KeyPair},
map_to_curve::GroupWithMapToCurve,
slow_hash::SlowHash,
errors::InternalPakeError, hash::Hash, key_exchange::traits::KeyExchange, keypair::KeyPair,
map_to_curve::GroupWithMapToCurve, slow_hash::SlowHash,
};
use rand_core::{CryptoRng, RngCore};
@@ -32,7 +28,7 @@ pub trait CipherSuite {
/// `map_to_curve::GroupWithMapToCurve`.
type Group: GroupWithMapToCurve;
/// A keypair type composed of public and private components
type KeyFormat: KeyPair<Repr = Key> + PartialEq;
type KeyFormat: KeyPair + PartialEq;
/// A key exchange protocol
type KeyExchange: KeyExchange<Self::Hash, Self::KeyFormat>;
/// The main hash function use (for HKDF computations and hashing transcripts)