Introduce PrivateKey associated type to CipherSuite

This commit is contained in:
daxpedda
2021-07-23 15:23:10 -07:00
committed by Kevin Lewi
parent 990acf67e3
commit d61e2d0b5c
11 changed files with 165 additions and 82 deletions
+2
View File
@@ -32,6 +32,7 @@ use std::process::exit;
use opaque_ke::{
ciphersuite::CipherSuite,
keypair::PrivateKey,
rand::{rngs::OsRng, RngCore},
ClientLogin, ClientLoginFinishParameters, ClientRegistration,
ClientRegistrationFinishParameters, CredentialFinalization, CredentialRequest,
@@ -48,6 +49,7 @@ impl CipherSuite for Default {
type KeyExchange = opaque_ke::key_exchange::tripledh::TripleDH;
type Hash = sha2::Sha512;
type SlowHash = opaque_ke::slow_hash::NoOpHash;
type PrivateKey = PrivateKey<Self::Group>;
}
struct Locker {