summaryrefslogtreecommitdiff
path: root/whrlpool.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-10-26 09:50:49 +0000
committerweidai <weidai11@users.noreply.github.com>2007-10-26 09:50:49 +0000
commita145a37068f046af2e5806c8bc2102384ab32fe1 (patch)
treeac3d63e8e69c858d5048e728191b2b455e02ba4c /whrlpool.cpp
parent7838a7f8147ab2e97e52175d7475b056d2de4062 (diff)
downloadcryptopp-git-a145a37068f046af2e5806c8bc2102384ab32fe1.tar.gz
do not align to 16 when not needed
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r--whrlpool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/whrlpool.cpp b/whrlpool.cpp
index 59f07512..b78bc7d7 100644
--- a/whrlpool.cpp
+++ b/whrlpool.cpp
@@ -118,7 +118,11 @@ void Whirlpool::TruncatedFinal(byte *hash, size_t size)
* employed).
*/
+#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
CRYPTOPP_ALIGN_DATA(16) static const word64 Whirlpool_C[4*256+R] CRYPTOPP_SECTION_ALIGN16 = {
+#else
+static const word64 Whirlpool_C[4*256+R] = {
+#endif
W64LIT(0x18186018c07830d8), W64LIT(0x23238c2305af4626), W64LIT(0xc6c63fc67ef991b8), W64LIT(0xe8e887e8136fcdfb),
W64LIT(0x878726874ca113cb), W64LIT(0xb8b8dab8a9626d11), W64LIT(0x0101040108050209), W64LIT(0x4f4f214f426e9e0d),
W64LIT(0x3636d836adee6c9b), W64LIT(0xa6a6a2a6590451ff), W64LIT(0xd2d26fd2debdb90c), W64LIT(0xf5f5f3f5fb06f70e),