]> git.lizzy.rs Git - PAKEs.git/blobdiff - srp/src/types.rs
Switch from num to num-traits and num-bigint (#31)
[PAKEs.git] / srp / src / types.rs
index 810132cce656e3ed522177f4b65b29ef3d032cfe..5dca8587f68dd3dcadeda88a9a61af58c29f3556 100644 (file)
@@ -1,18 +1,18 @@
 //! Additional SRP types.
-use std::{fmt, error};
-use num::BigUint;
-use tools::powm;
+use crate::tools::powm;
 use digest::Digest;
+use num_bigint::BigUint;
+use std::{error, fmt};
 
-/// SRP authentification error.
+/// SRP authentication error.
 #[derive(Debug, Copy, Clone, Eq, PartialEq)]
 pub struct SrpAuthError {
-    pub(crate) description: &'static str
+    pub(crate) description: &'static str,
 }
 
 impl fmt::Display for SrpAuthError {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f, "SRP authentification error")
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+        write!(f, "SRP authentication error")
     }
 }
 
@@ -53,8 +53,8 @@ impl SrpGroup {
 
 #[cfg(test)]
 mod tests {
-    use ::groups::G_1024;
-    use sha_1::Sha1;
+    use crate::groups::G_1024;
+    use sha1::Sha1;
 
     #[test]
     fn test_k_1024_sha1() {