diff options
author | Tony Arcieri <bascule@gmail.com> | 2022-01-22 15:48:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 15:48:43 -0700 |
commit | fb570e02d56b47a812e2a27b6b62eba01ce0416f (patch) | |
tree | 5ef5e03a01c7fc26be7d5c5fc5e1672a002181e9 /spake2/benches/spake2.rs | |
parent | 17292b56f52ceab154cb75239f690130df87e8a6 (diff) | |
download | PAKEs-fb570e02d56b47a812e2a27b6b62eba01ce0416f.tar.xz |
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.
Diffstat (limited to 'spake2/benches/spake2.rs')
-rw-r--r-- | spake2/benches/spake2.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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::<Ed25519Group>::start_a( + let (_, _) = Spake2::<Ed25519Group>::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::<Ed25519Group>::start_b( + let (_, msg2) = Spake2::<Ed25519Group>::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::<Ed25519Group>::start_a( + let (s1, _) = Spake2::<Ed25519Group>::start_a( &Password::new(b"password"), &Identity::new(b"idA"), &Identity::new(b"idB"), |