//! 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")
}
}
#[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() {