Save 100k by not using bloated sha3 code

Probably makes sha3 calculations somewhat slower.

Change-Id: Ie082c163b91d4e2282ad68b810e56b2437a1eb8a
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
bb10
Lars Knoll 2016-02-08 14:07:45 +01:00 committed by Lars Knoll
parent 8d330f55ba
commit dee8b4d6b1
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -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" ]
}
},