aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenden Matthews <brenden@diddyinc.com>2019-08-13 15:09:49 -0400
committerBrenden Matthews <brenden@diddyinc.com>2019-08-13 15:09:49 -0400
commit89de16310b0b4308a17810e99428d16c7c9ed33e (patch)
treeea816f68e606941546f68ac4d731b3276cb035a0
parentb58075fbb9cee7a2a5309ff9e444f85c0cd6e918 (diff)
downloadPAKEs-89de16310b0b4308a17810e99428d16c7c9ed33e.tar.xz
Fix spelling errors.
-rw-r--r--srp/src/client.rs6
-rw-r--r--srp/src/types.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/srp/src/client.rs b/srp/src/client.rs
index 6cc1d7f..78be566 100644
--- a/srp/src/client.rs
+++ b/srp/src/client.rs
@@ -44,8 +44,8 @@
//!
//! `key` contains shared secret key between user and the server. Alternatively
//! you can directly extract shared secret key using `get_key()` method and
-//! handle authentification through different (secure!) means (e.g. by using
-//! authentificated cipher mode).
+//! handle authentication through different (secure!) means (e.g. by using
+//! authenticated cipher mode).
//!
//! For user registration on the server first generate salt (e.g. 32 bytes long)
//! and get password verifier which depends on private key. Send useranme, salt
@@ -201,7 +201,7 @@ impl<'a, D: Digest> SrpClient<'a, D> {
impl<D: Digest> SrpClientVerifier<D> {
/// Get shared secret key without authenticating server, e.g. for using with
/// authenticated encryption modes. DO NOT USE this method without
- /// some kind of secure authentification.
+ /// some kind of secure authentication
pub fn get_key(self) -> GenericArray<u8, D::OutputSize> {
self.key
}
diff --git a/srp/src/types.rs b/srp/src/types.rs
index 6ae8595..692421f 100644
--- a/srp/src/types.rs
+++ b/srp/src/types.rs
@@ -4,7 +4,7 @@ use digest::Digest;
use num::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,
@@ -12,7 +12,7 @@ pub struct SrpAuthError {
impl fmt::Display for SrpAuthError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- write!(f, "SRP authentification error")
+ write!(f, "SRP authentication error")
}
}