From dee8b4d6b1d08e8ede98f38e7c972a7d1099d6c1 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 8 Feb 2016 14:07:45 +0100 Subject: [PATCH] Save 100k by not using bloated sha3 code Probably makes sha3 calculations somewhat slower. Change-Id: Ie082c163b91d4e2282ad68b810e56b2437a1eb8a Reviewed-by: Lars Knoll Reviewed-by: Oswald Buddenhagen --- src/3rdparty/sha3/KeccakF-1600-interface.h | 4 ++++ src/corelib/configure.json | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/3rdparty/sha3/KeccakF-1600-interface.h b/src/3rdparty/sha3/KeccakF-1600-interface.h index ce2710eeb2..39caaaecbd 100644 --- a/src/3rdparty/sha3/KeccakF-1600-interface.h +++ b/src/3rdparty/sha3/KeccakF-1600-interface.h @@ -14,7 +14,11 @@ http://creativecommons.org/publicdomain/zero/1.0/ #ifndef _KeccakPermutationInterface_h_ #define _KeccakPermutationInterface_h_ +#include + +#if QT_CONFIG(sha3_fast) #include "KeccakF-1600-int-set.h" +#endif static void KeccakInitialize( void ); static void KeccakInitializeState(unsigned char *state); diff --git a/src/corelib/configure.json b/src/corelib/configure.json index a471d55dca..d0a3a13e48 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -558,6 +558,12 @@ "purpose": "Provides a framework for gestures.", "section": "Utilities", "output": [ "publicFeature", "feature" ] + }, + "sha3-fast": { + "label": "Speed optimized SHA3", + "purpose": "Optimizes SHA3 for speed instead of size.", + "section": "Utilities", + "output": [ "privateFeature" ] } },