use generic_array::GenericArray;
use num::{BigUint, Zero};
-use tools::powm;
-use types::{SrpAuthError, SrpGroup};
+use crate::tools::powm;
+use crate::types::{SrpAuthError, SrpGroup};
/// SRP client state before handshake with the server.
pub struct SrpClient<'a, D: Digest> {
//! It is strongly recommended to use them instead of custom generated
//! groups. Additionally it is not recommended to use `G_1024` and `G_1536`,
//! they are provided only for compatibility with the legacy software.
+use crate::types::SrpGroup;
use num::BigUint;
-use types::SrpGroup;
lazy_static! {
pub static ref G_1024: SrpGroup = SrpGroup {
use generic_array::GenericArray;
use num::{BigUint, Zero};
-use tools::powm;
-use types::{SrpAuthError, SrpGroup};
+use crate::tools::powm;
+use crate::types::{SrpAuthError, SrpGroup};
/// Data provided by users upon registration, usually stored in the database.
pub struct UserRecord<'a> {
//! Additional SRP types.
+use crate::tools::powm;
use digest::Digest;
use num::BigUint;
use std::{error, fmt};
-use tools::powm;
/// SRP authentification error.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
#[cfg(test)]
mod tests {
- use groups::G_1024;
+ use crate::groups::G_1024;
use sha1::Sha1;
#[test]