Skip to contentSkip to conversation

crypto: gf128mul - remove incorrect comment

PATCH In review Eric Biggers 2 participants 2 messages Dec 11, 2017 – Dec 22, 2017 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: gf128mul - remove incorrect comment

From: Eric Biggers <[email protected]>

The comment in gf128mul_x8_ble() was copy-and-pasted from gf128mul.h and makes no sense in the new context. Remove it.

---
 crypto/gf128mul.c | 2 --
 1 file changed, 2 deletions(-)
crypto/gf128mul.c +0 -2
index 24e601954c7a..a4b1c026aaee 100644
@@ -160,8 +160,6 @@ void gf128mul_x8_ble(le128 *r, const le128 *x)
 {
 	u64 a = le64_to_cpu(x->a);
 	u64 b = le64_to_cpu(x->b);
-
-	/* equivalent to gf128mul_table_be[b >> 63] (see crypto/gf128mul.c): */
 	u64 _tt = gf128mul_table_be[a >> 56];
 
 	r->a = cpu_to_le64((a << 8) | (b >> 56));
Signature · 1 line
2.15.1.424.g9478a66081-goog
maintainer
#1 lore raw
Quoted 7 lines · Eric Biggers

From: Eric Biggers <[email protected]>

The comment in gf128mul_x8_ble() was copy-and-pasted from gf128mul.h and makes no sense in the new context. Remove it.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt