From d3c5b3dd41e13a17a42d1af278f99720adaa23d4 Mon Sep 17 00:00:00 2001 From: Samanta Navarro Date: Sat, 10 Oct 2020 11:16:27 +0000 Subject: [PATCH] Fix typos. Typos were found with codespell. --- ChangeLog | 4 ++-- NEWS | 2 +- doc/crypt.5 | 2 +- lib/alg-hmac-sha1.h | 2 +- lib/crypt-des.c | 2 +- lib/xcrypt.h.in | 2 +- libxcrypt.spec.rpkg | 2 +- test/special-char-salt.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index a0947b6e..f5e5db81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -100,7 +100,7 @@ * release version 3.0 - * plugins/*: Move all crypt releated code into plugins. + * plugins/*: Move all crypt related code into plugins. * plugins/sha256: New, $5$ aka sha256 hash. * plugins/sha512: New, $6$ aka sha512 hash. @@ -153,7 +153,7 @@ * src/x86.S: Added, optimized, thread safe version for ix86. - * src/crypt_blowfish.c: Use optimized assember functions on ix86. + * src/crypt_blowfish.c: Use optimized assembler functions on ix86. * libxcrypt.spec: New. diff --git a/NEWS b/NEWS index 1a5b581f..9397f0c3 100644 --- a/NEWS +++ b/NEWS @@ -170,7 +170,7 @@ Version 4.3.2 * Fix the gensalt function for the NT hashing method ($3$) to properly terminate its output string. The output buffer for the returned string must be at least 30 bytes long. -* Remove the gensalt fuction for the bcrypt x variant ($2x$). +* Remove the gensalt function for the bcrypt x variant ($2x$). This prefix was never intended for use when hashing new passphrases. The only use case originally intended was to manually edit '$2a$' to '$2x$' in passphrase hashes to knowingly take the risk yet enable diff --git a/doc/crypt.5 b/doc/crypt.5 index 6aaf9370..0b81c105 100644 --- a/doc/crypt.5 +++ b/doc/crypt.5 @@ -173,7 +173,7 @@ Recommended for new hashes. .hash "$y$" "\e$y\e$[./A-Za-z0-9]+\e$[./A-Za-z0-9]{,86}\e$[./A-Za-z0-9]{43}" unlimited 8 256 256 "up to 512" "1 to 11 (logarithmic)" .Ss gost-yescrypt gost-yescrypt uses the output from the yescrypt hashing method in place of a -hmac message. Thus, the yescrypt crypto properties are superseeded by the +hmac message. Thus, the yescrypt crypto properties are superseded by the GOST R 34.11-2012 (Streebog) hash function with a 256 bit digest. This hashing method is useful in applications that need modern passphrase hashing methods, but require to rely on the cryptographic properties of GOST diff --git a/lib/alg-hmac-sha1.h b/lib/alg-hmac-sha1.h index 78e08f09..1aea49a9 100644 --- a/lib/alg-hmac-sha1.h +++ b/lib/alg-hmac-sha1.h @@ -27,7 +27,7 @@ */ /* Generate the keyed-hash message authentication code of TEXT and KEY. - The resulting HMAC is writen into RESBUF, which should point to 20 + The resulting HMAC is written into RESBUF, which should point to 20 bytes of storage. */ extern void hmac_sha1_process_data (const uint8_t *text, size_t text_len, diff --git a/lib/crypt-des.c b/lib/crypt-des.c index 402f99ce..e3509ecc 100644 --- a/lib/crypt-des.c +++ b/lib/crypt-des.c @@ -215,7 +215,7 @@ crypt_descrypt_rn (const char *phrase, size_t ARG_UNUSED (phr_size), Description: The cleartext is divided into blocks of 8 characters or less. Each block is encrypted using the standard UNIX libc crypt function. The result of the encryption for one block provides the - salt for the suceeding block. The output is simply the + salt for the succeeding block. The output is simply the concatenation of all the blocks. Up to 16 blocks are supported (that is, the password can be no more than 128 characters long). diff --git a/lib/xcrypt.h.in b/lib/xcrypt.h.in index 332722c9..cec24b26 100644 --- a/lib/xcrypt.h.in +++ b/lib/xcrypt.h.in @@ -28,7 +28,7 @@ (v3.1.1 and earlier) of libxcrypt. We intentionally declare these functions using macros here, since we actually want to link compiled applications against - the unprefixed indentical functions defined in . */ + the unprefixed identical functions defined in . */ #ifndef IN_LIBCRYPT /* Defined when building libxcrypt. */ # ifdef __REDIRECT_NTH extern char * __REDIRECT_NTH (xcrypt, (const char *__phrase, diff --git a/libxcrypt.spec.rpkg b/libxcrypt.spec.rpkg index 12216a63..4d4147ae 100644 --- a/libxcrypt.spec.rpkg +++ b/libxcrypt.spec.rpkg @@ -272,7 +272,7 @@ This version of the libcrypt.so.1 library has entirely removed the functionality of the encrypt, encrypt_r, setkey, setkey_r, and fcrypt functions, while keeping fully binary compatibility with existing (third-party) applications possibly still using -those funtions. If such an application attemps to call one of +those functions. If such an application attempts to call one of these functions, the corresponding function will indicate that it is not supported by the system in a POSIX-compliant way. diff --git a/test/special-char-salt.c b/test/special-char-salt.c index 4152be67..be2028d8 100644 --- a/test/special-char-salt.c +++ b/test/special-char-salt.c @@ -16,7 +16,7 @@ * SUCH DAMAGE. */ -/* Simple test to ensure compatability of our implementations of the +/* Simple test to ensure compatibility of our implementations of the md5crypt, sha256crypt, and sha512crypt hashing method with the ones found in other commonly used libcrypt libraries. Their implementations allow for any ASCII character (with one exception to the colon ':'