aboutsummaryrefslogtreecommitdiff
path: root/spake2/src
diff options
context:
space:
mode:
authorBrian Warner <warner@lothar.com>2018-12-06 11:48:10 -0800
committerBrian Warner <warner@lothar.com>2018-12-06 15:00:20 -0800
commit59203944db2c9c1f1e0ee19c721633c637ec40b2 (patch)
tree921dcbceafb3da66fe41b0165f0346803d1ed457 /spake2/src
parentdcf4842af1070da895f3b458e6fe620ee584d0e7 (diff)
downloadPAKEs-59203944db2c9c1f1e0ee19c721633c637ec40b2.tar.xz
update spake2 to edition-2018
Diffstat (limited to 'spake2/src')
-rw-r--r--spake2/src/lib.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/spake2/src/lib.rs b/spake2/src/lib.rs
index 4ef7ad5..ea488ba 100644
--- a/spake2/src/lib.rs
+++ b/spake2/src/lib.rs
@@ -288,18 +288,10 @@
#![deny(warnings)]
#![forbid(unsafe_code)]
-extern crate curve25519_dalek;
-extern crate hex;
-extern crate hkdf;
-extern crate num_bigint;
-extern crate rand;
-extern crate sha2;
-
use curve25519_dalek::constants::ED25519_BASEPOINT_POINT;
use curve25519_dalek::edwards::CompressedEdwardsY;
use curve25519_dalek::edwards::EdwardsPoint as c2_Element;
use curve25519_dalek::scalar::Scalar as c2_Scalar;
-
use hkdf::Hkdf;
use rand::{rngs::OsRng, CryptoRng, Rng};
use sha2::{Digest, Sha256};
@@ -828,7 +820,7 @@ fn maybe_utf8(s: &[u8]) -> String {
}
impl<G: Group> fmt::Debug for SPAKE2<G> {
- fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_struct("SPAKE2")
.field("group", &G::name())
.field("side", &self.side)