]> git.lizzy.rs Git - PAKEs.git/commitdiff
Fix spelling errors.
authorBrenden Matthews <brenden@diddyinc.com>
Tue, 13 Aug 2019 19:09:49 +0000 (15:09 -0400)
committerBrenden Matthews <brenden@diddyinc.com>
Tue, 13 Aug 2019 19:09:49 +0000 (15:09 -0400)
srp/src/client.rs
srp/src/types.rs

index 6cc1d7f78514c2bc682418c6f7b5f38daf2e3daa..78be5669f835e55edd0dc77a0d4f458f7b7de437 100644 (file)
@@ -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
     }
index 6ae8595093341199566b2daeb3899fcbb02fe1c4..692421fd40e808a7af1c230a583a8dc1d60d32be 100644 (file)
@@ -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")
     }
 }