summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-13 22:53:16 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-13 22:53:16 -0400
commit9bf0eed0f6ff6d0b0a2d277e5401d69dc8c0e394 (patch)
treedfb2f64a240d1f2054d0aa8d8109830e233c2909 /sha3.h
parente78b8fe1dff7acdb1a52f12de72f34dc33982901 (diff)
downloadcryptopp-git-9bf0eed0f6ff6d0b0a2d277e5401d69dc8c0e394.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
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 232bae56..15cefc97 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();