From fb570e02d56b47a812e2a27b6b62eba01ce0416f Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 22 Jan 2022 15:48:43 -0700 Subject: spake2: capitalization and doc fixes (#89) Renames the following: - `SPAKE2` => `Spake2` - `SPAKEErr` -> `Error` Additionally lints for `missing_docs` and adds preliminary documentation for all types and methods which previously had none. --- spake2/benches/spake2.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spake2/benches/spake2.rs') diff --git a/spake2/benches/spake2.rs b/spake2/benches/spake2.rs index c213947..7638194 100644 --- a/spake2/benches/spake2.rs +++ b/spake2/benches/spake2.rs @@ -1,10 +1,10 @@ use bencher::Bencher; use bencher::{benchmark_group, benchmark_main}; -use spake2::{Ed25519Group, Identity, Password, SPAKE2}; +use spake2::{Ed25519Group, Identity, Password, Spake2}; fn spake2_start(bench: &mut Bencher) { bench.iter(|| { - let (_, _) = SPAKE2::::start_a( + let (_, _) = Spake2::::start_a( &Password::new(b"password"), &Identity::new(b"idA"), &Identity::new(b"idB"), @@ -31,14 +31,14 @@ fn spake2_finish(bench: &mut Bencher) { */ fn spake2_start_and_finish(bench: &mut Bencher) { - let (_, msg2) = SPAKE2::::start_b( + let (_, msg2) = Spake2::::start_b( &Password::new(b"password"), &Identity::new(b"idA"), &Identity::new(b"idB"), ); let msg2_slice = msg2.as_slice(); bench.iter(|| { - let (s1, _) = SPAKE2::::start_a( + let (s1, _) = Spake2::::start_a( &Password::new(b"password"), &Identity::new(b"idA"), &Identity::new(b"idB"), -- cgit v1.2.3