aboutsummaryrefslogtreecommitdiff
path: root/srp/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'srp/src/client.rs')
-rw-r--r--srp/src/client.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/srp/src/client.rs b/srp/src/client.rs
index db4c576..a33f9b3 100644
--- a/srp/src/client.rs
+++ b/srp/src/client.rs
@@ -61,7 +61,6 @@ use std::marker::PhantomData;
use digest::Digest;
use generic_array::GenericArray;
use num_bigint::BigUint;
-use num_traits::Zero;
use crate::tools::powm;
use crate::types::{SrpAuthError, SrpGroup};
@@ -160,7 +159,7 @@ impl<'a, D: Digest> SrpClient<'a, D> {
let b_pub = BigUint::from_bytes_be(b_pub);
// Safeguard against malicious B
- if &b_pub % &self.params.n == BigUint::zero() {
+ if &b_pub % &self.params.n == BigUint::default() {
return Err(SrpAuthError {
description: "Malicious b_pub value",
});