]> git.lizzy.rs Git - PAKEs.git/commitdiff
Switch from num to num-traits and num-bigint (#31)
authorest31 <est31@users.noreply.github.com>
Wed, 6 Nov 2019 12:31:52 +0000 (13:31 +0100)
committerArtyom Pavlov <newpavlov@gmail.com>
Wed, 6 Nov 2019 12:31:52 +0000 (12:31 +0000)
srp/Cargo.toml
srp/src/client.rs
srp/src/groups.rs
srp/src/server.rs
srp/src/tools.rs
srp/src/types.rs

index fa6ee774fa7eba10b06d7e74af4cbc53fa432bdf..3ade1b07a3abdfe3930751ed9f606fbe2f227485 100644 (file)
@@ -11,7 +11,8 @@ keywords = ["crypto", "pake", "authentication"]
 categories = ["cryptography", "authentication"]
 
 [dependencies]
-num = "0.2"
+num-bigint = "0.2"
+num-traits = "0.2"
 generic-array = "0.12"
 digest = "0.8"
 lazy_static = "1.2"
index 78be5669f835e55edd0dc77a0d4f458f7b7de437..db4c5767d772a0fb06b02de014776925e00b0e25 100644 (file)
@@ -60,7 +60,8 @@ use std::marker::PhantomData;
 
 use digest::Digest;
 use generic_array::GenericArray;
-use num::{BigUint, Zero};
+use num_bigint::BigUint;
+use num_traits::Zero;
 
 use crate::tools::powm;
 use crate::types::{SrpAuthError, SrpGroup};
index d5c5fb9376bf98b31945cd912801a00a90fc124c..86bc6814639145180ab4e2c4c63603d02bbf76e8 100644 (file)
@@ -5,7 +5,7 @@
 //! they are provided only for compatibility with the legacy software.
 use crate::types::SrpGroup;
 use lazy_static::lazy_static;
-use num::BigUint;
+use num_bigint::BigUint;
 
 lazy_static! {
     pub static ref G_1024: SrpGroup = SrpGroup {
index a4764d3a73778d0cbc7a8264b99208c816f18b33..6e414046057275df19e3cc2ca3a4d3b9195f839e 100644 (file)
@@ -38,7 +38,8 @@ use std::marker::PhantomData;
 
 use digest::Digest;
 use generic_array::GenericArray;
-use num::{BigUint, Zero};
+use num_bigint::BigUint;
+use num_traits::Zero;
 
 use crate::tools::powm;
 use crate::types::{SrpAuthError, SrpGroup};
index 4fc5db9f19fdb74d5bd11aa662aa581fe46a0139..f761dca2e4eb0c51325c218654a84bf3bbdb4ea2 100644 (file)
@@ -1,4 +1,4 @@
-use num::BigUint;
+use num_bigint::BigUint;
 
 pub fn powm(base: &BigUint, exp: &BigUint, modulus: &BigUint) -> BigUint {
     let zero = BigUint::new(vec![0]);
index 692421fd40e808a7af1c230a583a8dc1d60d32be..5dca8587f68dd3dcadeda88a9a61af58c29f3556 100644 (file)
@@ -1,7 +1,7 @@
 //! Additional SRP types.
 use crate::tools::powm;
 use digest::Digest;
-use num::BigUint;
+use num_bigint::BigUint;
 use std::{error, fmt};
 
 /// SRP authentication error.