summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-14 02:57:13 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-14 02:57:13 +0000
commit51dd45a78501d37d02fea9ffa504d2e609ad8672 (patch)
tree79997d63ec3bcfc521fbc6b058d6405c90884787 /sha3.h
parent47e5a4d4ea89c7f236bfc55df01c052efc3059e1 (diff)
downloadcryptopp-51dd45a78501d37d02fea9ffa504d2e609ad8672.tar.gz
Cleared crash with GCC 4.8 and above and -O3. In a nutshell, it was due to vectorization and alignment violations agains the vmovdqa instruction
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@583 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3.h b/sha3.h
index 232bae5..15cefc9 100644
--- a/sha3.h
+++ b/sha3.h
@@ -15,7 +15,7 @@ public:
SHA3(unsigned int digestSize) : m_digestSize(digestSize) {Restart();}
unsigned int DigestSize() const {return m_digestSize;}
std::string AlgorithmName() const {return "SHA-3-" + IntToString(m_digestSize*8);}
- unsigned int OptimalDataAlignment() const {return GetAlignmentOf<word64>();}
+ unsigned int OptimalDataAlignment() const {return GetStrictAlignmentOf<word64>();}
void Update(const byte *input, size_t length);
void Restart();