diff options
author | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-14 02:57:13 +0000 |
---|---|---|
committer | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-14 02:57:13 +0000 |
commit | 51dd45a78501d37d02fea9ffa504d2e609ad8672 (patch) | |
tree | 79997d63ec3bcfc521fbc6b058d6405c90884787 /sha3.h | |
parent | 47e5a4d4ea89c7f236bfc55df01c052efc3059e1 (diff) | |
download | cryptopp-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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();
|