Move PrivateKey from CipherSuite to ServerSetup

This commit is contained in:
daxpedda
2021-07-23 15:23:10 -07:00
committed by Kevin Lewi
parent 124d64c9ca
commit 3d01a605df
8 changed files with 18 additions and 45 deletions
+2 -4
View File
@@ -6,8 +6,8 @@
//! Defines the CipherSuite trait to specify the underlying primitives for OPAQUE
use crate::{
hash::Hash, key_exchange::traits::KeyExchange, keypair::SecretKey,
map_to_curve::GroupWithMapToCurve, slow_hash::SlowHash,
hash::Hash, key_exchange::traits::KeyExchange, map_to_curve::GroupWithMapToCurve,
slow_hash::SlowHash,
};
use digest::Digest;
@@ -31,6 +31,4 @@ pub trait CipherSuite {
type Hash: Hash;
/// A slow hashing function, typically used for password hashing
type SlowHash: SlowHash<Self::Hash>;
/// A private key container, allows remote key implementations
type PrivateKey: SecretKey<Self::Group>;
}