tls: code shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 23 Nov 2018 18:07:05 +0000 (19:07 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 23 Nov 2018 18:07:05 +0000 (19:07 +0100)
function                                             old     new   delta
aesgcm_GHASH                                         262     233     -29

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tls_aesgcm.c

index a06f8c8c5f84e3d51ef2025fdce5b18960230e69..84c90314f1849159505f33e90c48bee02e39ec71 100644 (file)
@@ -130,9 +130,10 @@ void FAST_FUNC aesgcm_GHASH(byte* h,
             c += AES_BLOCK_SIZE;
         }
         if (partial != 0) {
-            XMEMSET(scratch, 0, AES_BLOCK_SIZE);
-            XMEMCPY(scratch, c, partial);
-            xorbuf(x, scratch, AES_BLOCK_SIZE);
+            //XMEMSET(scratch, 0, AES_BLOCK_SIZE);
+            //XMEMCPY(scratch, c, partial);
+            //xorbuf(x, scratch, AES_BLOCK_SIZE);
+            xorbuf(x, c, partial);
             GMULT(x, h);
         }
     }