aboutsummaryrefslogtreecommitdiff
path: root/srp/src
diff options
context:
space:
mode:
authorTony Arcieri <bascule@gmail.com>2021-04-30 12:31:32 -0700
committerGitHub <noreply@github.com>2021-04-30 12:31:32 -0700
commita1ceee2bfe36b3719ba7a643da63a689429cf0ff (patch)
tree0d0cb6eff0f1bae4b05db7e3f2abcf5a1ba5cae2 /srp/src
parent4e1b5728c8e9db2928efa9cce86da84869a948a0 (diff)
downloadPAKEs-a1ceee2bfe36b3719ba7a643da63a689429cf0ff.tar.xz
Migrate to GitHub Actions (#42)
Uses the standard boilerplate we've been using for other projects
Diffstat (limited to 'srp/src')
-rw-r--r--srp/src/client.rs3
-rw-r--r--srp/src/lib.rs2
2 files changed, 4 insertions, 1 deletions
diff --git a/srp/src/client.rs b/srp/src/client.rs
index a9f7564..04f4807 100644
--- a/srp/src/client.rs
+++ b/srp/src/client.rs
@@ -56,6 +56,7 @@
//! let pwd_verifier = client.get_password_verifier(&private_key);
//! conn.send_registration_data(username, salt, pwd_verifier);
//! ```
+
use std::marker::PhantomData;
use digest::{Digest, Output};
@@ -184,6 +185,7 @@ impl<'a, D: Digest> SrpClient<'a, D> {
}
/// Process server reply to the handshake with username and salt.
+ #[allow(non_snake_case)]
pub fn process_reply_with_username_and_salt(
self,
username: &[u8],
@@ -225,7 +227,6 @@ impl<'a, D: Digest> SrpClient<'a, D> {
d.update(&key.to_vec());
d.finalize()
};
- let x = proof.to_vec().as_slice();
// M2 = H(A, M1, K)
let server_proof = {
diff --git a/srp/src/lib.rs b/srp/src/lib.rs
index 132851d..cec6f36 100644
--- a/srp/src/lib.rs
+++ b/srp/src/lib.rs
@@ -63,6 +63,8 @@
//!
//! [1]: https://en.wikipedia.org/wiki/Secure_Remote_Password_protocol
//! [2]: https://tools.ietf.org/html/rfc5054
+
+#![allow(clippy::many_single_char_names)]
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
pub mod client;