Skip to contentSkip to conversation

crypto: fix spelling errors in comments

PATCH Superseded Sun Chaobo 1 participant 1 message Feb 23 Crypto API

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Sun Chaobo

author
#0 lore raw

PATCH 1/1 crypto: fix spelling errors in comments

Fix several spelling mistakes in comments across the following files:

- crypto/tea.c: Correct "algorogrthm" to "algorithm"
- crypto/lrw.c: Correct "mutliple" to "multiple"
- crypto/drbg.c: Correct "additonal" to "additional"

No functional change.

---
 crypto/drbg.c | 2 +-
 crypto/lrw.c  | 2 +-
 crypto/tea.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
crypto/drbg.c +1 -1
index 1ed209e5d..9204e6edb 100644
@@ -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 */
crypto/lrw.c +1 -1
index dd403b800..aa31ab03a 100644
@@ -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)
crypto/tea.c +1 -1
index cb05140e3..7c66efcb5 100644
@@ -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.
Signature · 1 line
2.53.0