From 5f0b06aedacb723b03ceb259190853ee6a116f5d Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Thu, 31 May 2018 09:23:32 +0100 Subject: [PATCH] aes: xts: Fix description of gf128mul THe function `mbedtls_gf128mul_x_ble()` doesn't multiply by x, x^4, and x^8. Update the function description to properly describe what the function does. --- library/aes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/aes.c b/library/aes.c index 9c7d3d0c45..de25927098 100644 --- a/library/aes.c +++ b/library/aes.c @@ -1105,10 +1105,10 @@ typedef unsigned char mbedtls_be128[16]; /* * GF(2^128) multiplication function * - * This function multiplies a field element by x, by x^4 and by x^8 in the - * polynomial field representation. It uses 64-bit word operations to gain - * speed but compensates for machine endianess and hence works correctly on - * both big and little endian machines. + * This function multiplies a field element by x in the polynomial field + * representation. It uses 64-bit word operations to gain speed but compensates + * for machine endianess and hence works correctly on both big and little + * endian machines. */ static void mbedtls_gf128mul_x_ble( unsigned char r[16], const unsigned char x[16])