]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: Fix several spelling mistakes in comments
authorSun Chaobo <suncoding913@gmail.com>
Fri, 13 Mar 2026 14:52:57 +0000 (22:52 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 22 Mar 2026 02:17:59 +0000 (11:17 +0900)
Fix several typos in comments and messages.
No functional change.

Signed-off-by: Sun Chaobo <suncoding913@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c
crypto/lrw.c
crypto/tcrypt.c
crypto/tea.c
crypto/xts.c

index 1ed209e5d5ddc3baca540393e2b4a7fe62c0410c..9204e6edb426821f607234850f4c07ecf5e7f179 100644 (file)
@@ -1780,7 +1780,7 @@ static inline int __init drbg_healthcheck_sanity(void)
        max_addtllen = drbg_max_addtl(drbg);
        max_request_bytes = drbg_max_request_bytes(drbg);
        drbg_string_fill(&addtl, buf, max_addtllen + 1);
-       /* overflow addtllen with additonal info string */
+       /* overflow addtllen with additional info string */
        len = drbg_generate(drbg, buf, OUTBUFLEN, &addtl);
        BUG_ON(0 < len);
        /* overflow max_bits */
index dd403b800513b3ff174f9af932dac4c88bae8d16..aa31ab03a59755f979d278912655dc5f7cf3661c 100644 (file)
@@ -134,7 +134,7 @@ static int lrw_next_index(u32 *counter)
 /*
  * We compute the tweak masks twice (both before and after the ECB encryption or
  * decryption) to avoid having to allocate a temporary buffer and/or make
- * mutliple calls to the 'ecb(..)' instance, which usually would be slower than
+ * multiple calls to the 'ecb(..)' instance, which usually would be slower than
  * just doing the lrw_next_index() calls again.
  */
 static int lrw_xor_tweak(struct skcipher_request *req, bool second_pass)
index db860f45765fb20e6bab0a60661b0be0757996ca..52e3b584c5243c843c02913d0517c783289f65ae 100644 (file)
@@ -2828,7 +2828,7 @@ static int __init tcrypt_mod_init(void)
                pr_debug("all tests passed\n");
        }
 
-       /* We intentionaly return -EAGAIN to prevent keeping the module,
+       /* We intentionally return -EAGAIN to prevent keeping the module,
         * unless we're running in fips mode. It does all its work from
         * init() and doesn't offer any runtime functionality, but in
         * the fips case, checking for a successful load is helpful.
index cb05140e3470cebf9f8fe0e7ee77ffa28af0f388..7c66efcb5caa59a9081f444dbc92f72bd9756816 100644 (file)
@@ -2,7 +2,7 @@
 /* 
  * Cryptographic API.
  *
- * TEA, XTEA, and XETA crypto alogrithms
+ * TEA, XTEA, and XETA crypto algorithms
  *
  * The TEA and Xtended TEA algorithms were developed by David Wheeler 
  * and Roger Needham at the Computer Laboratory of Cambridge University.
index 3da8f5e053d6099a4dc2f2be34bbe480e27610b4..ad97c8091582e8b840f323965cda7eb0cc172fed 100644 (file)
@@ -76,7 +76,7 @@ static int xts_setkey(struct crypto_skcipher *parent, const u8 *key,
 /*
  * We compute the tweak masks twice (both before and after the ECB encryption or
  * decryption) to avoid having to allocate a temporary buffer and/or make
- * mutliple calls to the 'ecb(..)' instance, which usually would be slower than
+ * multiple calls to the 'ecb(..)' instance, which usually would be slower than
  * just doing the gf128mul_x_ble() calls again.
  */
 static int xts_xor_tweak(struct skcipher_request *req, bool second_pass,