@@ -5,8 +5,8 @@ use std::{
55
66use async_lock:: RwLock ;
77use core_crypto:: {
8- CertificateBundle , ClientId , ConnectionType , ConversationId , CoreCrypto , Database , DatabaseKey , HistorySecret ,
9- MlsCiphersuite , MlsCommitBundle , MlsConversationConfiguration , MlsCredentialType , MlsCustomConfiguration ,
8+ CertificateBundle , Ciphersuite , ClientId , ConnectionType , ConversationId , CoreCrypto , Database , DatabaseKey ,
9+ HistorySecret , MlsCommitBundle , MlsConversationConfiguration , MlsCredentialType , MlsCustomConfiguration ,
1010 MlsGroupInfoBundle , MlsTransport , MlsTransportData , MlsTransportResponse , Session , SessionConfig ,
1111} ;
1212use criterion:: BenchmarkId ;
@@ -35,7 +35,7 @@ pub enum MlsTestCase {
3535}
3636
3737impl MlsTestCase {
38- pub fn get ( & self ) -> ( Self , MlsCiphersuite , Option < CertificateBundle > ) {
38+ pub fn get ( & self ) -> ( Self , Ciphersuite , Option < CertificateBundle > ) {
3939 match self {
4040 MlsTestCase :: Basic_Ciphersuite1 => (
4141 * self ,
@@ -59,7 +59,7 @@ impl MlsTestCase {
5959 }
6060 }
6161
62- pub fn values ( ) -> impl Iterator < Item = ( Self , MlsCiphersuite , Option < CertificateBundle > , bool ) > {
62+ pub fn values ( ) -> impl Iterator < Item = ( Self , Ciphersuite , Option < CertificateBundle > , bool ) > {
6363 [
6464 MlsTestCase :: Basic_Ciphersuite1 ,
6565 #[ cfg( feature = "test-all-cipher" ) ]
@@ -121,7 +121,7 @@ impl Display for MlsTestCase {
121121}
122122
123123pub async fn setup_mls (
124- ciphersuite : MlsCiphersuite ,
124+ ciphersuite : Ciphersuite ,
125125 credential : Option < & CertificateBundle > ,
126126 in_memory : bool ,
127127) -> ( CoreCrypto , ConversationId , Arc < dyn MlsTransportTestExt > ) {
@@ -146,7 +146,7 @@ pub async fn setup_mls(
146146}
147147
148148pub async fn new_central (
149- ciphersuite : MlsCiphersuite ,
149+ ciphersuite : Ciphersuite ,
150150 // TODO: always None for the moment. Need to update the benches with some realistic certificates. Tracking issue: WPB-9589
151151 _credential : Option < & CertificateBundle > ,
152152 in_memory : bool ,
@@ -190,7 +190,7 @@ pub fn conversation_id() -> ConversationId {
190190pub async fn add_clients (
191191 central : & mut Session ,
192192 id : & ConversationId ,
193- ciphersuite : MlsCiphersuite ,
193+ ciphersuite : Ciphersuite ,
194194 nb_clients : usize ,
195195 main_client_delivery_service : Arc < dyn MlsTransportTestExt > ,
196196) -> ( Vec < ClientId > , VerifiableGroupInfo ) {
@@ -225,7 +225,7 @@ pub async fn add_clients(
225225}
226226
227227pub async fn setup_mls_and_add_clients (
228- cipher_suite : MlsCiphersuite ,
228+ cipher_suite : Ciphersuite ,
229229 credential : Option < & CertificateBundle > ,
230230 in_memory : bool ,
231231 client_count : usize ,
@@ -253,7 +253,7 @@ fn create_signature_keypair(backend: &MlsCryptoProvider, ciphersuite: Ciphersuit
253253 SignatureKeyPair :: new ( ciphersuite. signature_algorithm ( ) , & mut * rng) . unwrap ( )
254254}
255255
256- pub async fn rand_key_package ( ciphersuite : MlsCiphersuite ) -> ( KeyPackage , ClientId ) {
256+ pub async fn rand_key_package ( ciphersuite : Ciphersuite ) -> ( KeyPackage , ClientId ) {
257257 let client_id = Alphanumeric
258258 . sample_string ( & mut rand:: thread_rng ( ) , 16 )
259259 . as_bytes ( )
@@ -286,7 +286,7 @@ pub async fn invite(
286286 from : & mut Session ,
287287 other : & mut Session ,
288288 id : & ConversationId ,
289- ciphersuite : MlsCiphersuite ,
289+ ciphersuite : Ciphersuite ,
290290 delivery_service : Arc < dyn MlsTransportTestExt > ,
291291) {
292292 let core_crypto = CoreCrypto :: from ( from. clone ( ) ) ;
0 commit comments