summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/sha3/KeccakF-1600-interface.h4
-rw-r--r--src/corelib/configure.json6
2 files changed, 10 insertions, 0 deletions
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 <private/qglobal_p.h>
+
+#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" ]
}
},