aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-03 21:52:31 +0000
committerlloyd <[email protected]>2010-11-03 21:52:31 +0000
commit412c50ed41b468b819c817ec3d8858a17284d75b (patch)
tree8b416cb18fec087aa3e016ba20c3ea2872474f3b /src
parent185399c5548c88bdd2d8e68343b03ee7cbc066d8 (diff)
Update Skein-512 for the new 1.3 specification, just changes the key
schedule constant to prevent rotational attacks.
Diffstat (limited to 'src')
-rw-r--r--src/hash/skein/skein_512.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/skein/skein_512.cpp b/src/hash/skein/skein_512.cpp
index 1434f0b3e..3ed3e32a7 100644
--- a/src/hash/skein/skein_512.cpp
+++ b/src/hash/skein/skein_512.cpp
@@ -1,6 +1,6 @@
/*
* The Skein-512 hash function
-* (C) 2009 Jack Lloyd
+* (C) 2009-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
@@ -47,7 +47,7 @@ void ubi_512(MemoryRegion<u64bit>& H,
}
H[8] = H[0] ^ H[1] ^ H[2] ^ H[3] ^
- H[4] ^ H[5] ^ H[6] ^ H[7] ^ 0x5555555555555555;
+ H[4] ^ H[5] ^ H[6] ^ H[7] ^ 0x1BD11BDAA9FC1A22;
T[2] = T[0] ^ T[1];