diff --git a/adss/Cargo.toml b/adss/Cargo.toml index c5f43bd4..e7430665 100644 --- a/adss/Cargo.toml +++ b/adss/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "adss" -version = "0.2.2" +version = "0.2.3" authors = ["eV ", "Alex Davidson "] description = "Adept Secret Sharing framework" documentation = "https://docs.rs/adss" @@ -11,7 +11,7 @@ license = "MPL-2.0" edition = "2018" [dependencies] -strobe-rs = "0.8.1" +strobe-rs = "0.10.0" rand = "0.8.5" rand_core = "0.6.4" zeroize = "1.5.5" diff --git a/adss/src/lib.rs b/adss/src/lib.rs index f6f1a70c..b407b231 100644 --- a/adss/src/lib.rs +++ b/adss/src/lib.rs @@ -273,7 +273,7 @@ impl Commune { self.M.clone() } - fn verify(&self, J: &mut [u8]) -> Result<(), Box> { + fn verify(&self, J: &[u8; MAC_LENGTH]) -> Result<(), Box> { let mut transcript = self .clone() .T @@ -323,7 +323,7 @@ where T: None, }; - c.verify(&mut s.J.clone())?; + c.verify(&s.J.clone())?; Ok(c) } diff --git a/ppoprf/Cargo.toml b/ppoprf/Cargo.toml index c7a1136f..a900888b 100644 --- a/ppoprf/Cargo.toml +++ b/ppoprf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ppoprf" -version = "0.4.0" +version = "0.4.1" authors = ["Alex Davidson ", "Ralph Ankele "] description = "Puncturable Partially-Oblivious Pseudo-Random Function" documentation = "https://docs.rs/ppoprf" @@ -15,7 +15,7 @@ rand = { version = "0.8.5", features = [ "getrandom" ] } bitvec = { version = "1.0.1", features = ["serde"] } curve25519-dalek = { version = "4.0.0", features = [ "rand_core", "serde" ] } serde = { version = "1.0.147", features = ["derive"] } -strobe-rs = "0.8.1" +strobe-rs = "0.10.0" base64 = "0.13.0" bincode = "1.3.3" derive_more = "0.99" diff --git a/star/Cargo.toml b/star/Cargo.toml index 16fb13d1..5b689dfe 100644 --- a/star/Cargo.toml +++ b/star/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sta-rs" -version = "0.3.0" +version = "0.3.1" authors = ["Alex Davidson "] description = "Distributed Secret-Sharing for Threshold Aggregation Reporting" documentation = "https://docs.rs/sta-rs" @@ -11,9 +11,9 @@ license = "MPL-2.0" edition = "2018" [dependencies] -strobe-rs = "0.8.1" -adss = { path = "../adss", version = "0.2.2" } -ppoprf = { path = "../ppoprf", version = "0.4.0" } +strobe-rs = "0.10.0" +adss = { path = "../adss", version = "0.2.3" } +ppoprf = { path = "../ppoprf", version = "0.4.1" } rand = "0.8.5" rand_core = "0.6.4" zeroize = "1.5.5" diff --git a/star/benches/bench.rs b/star/benches/bench.rs index 1182781a..ca02ec8a 100644 --- a/star/benches/bench.rs +++ b/star/benches/bench.rs @@ -118,7 +118,7 @@ fn benchmark_end_to_end(c: &mut Criterion) { ].iter().for_each(|params| { let epoch = "t"; let messages = get_messages(params, epoch); - group.bench_function(&format!("E2E server (n={}, s={}, clients={}, threshold={}, local_randomness={}, aux_data={})", params.n, params.s, params.clients, params.threshold, params.local, params.aux_data), |b| { + group.bench_function(format!("E2E server (n={}, s={}, clients={}, threshold={}, local_randomness={}, aux_data={})", params.n, params.s, params.clients, params.threshold, params.local, params.aux_data), |b| { let agg_server = AggregationServer::new(params.threshold, epoch); b.iter(|| { let _o = agg_server.retrieve_outputs(&messages); diff --git a/star/test-utils/Cargo.toml b/star/test-utils/Cargo.toml index 03f9f7bb..31874fe8 100644 --- a/star/test-utils/Cargo.toml +++ b/star/test-utils/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -strobe-rs = "0.8.1" +strobe-rs = "0.10.0" sta-rs = { path = "../" } rand = { version = "0.8.5", features = [ "std" ] } rayon = "1.7"