]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Comment fixes.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 5 Oct 2005 14:57:00 +0000 (16:57 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 5 Oct 2005 14:57:00 +0000 (16:57 +0200)
Rev: src/nettle/sha256.c:1.4

sha256.c

index 619cb72111926a27961b26bc06fea581f2c0a05d..fa32971b38ba72b678591f1a9183ed12f6ff86ce 100644 (file)
--- a/sha256.c
+++ b/sha256.c
@@ -1,6 +1,8 @@
 /* sha256.h
  *
  * The sha256 hash function.
+ *
+ * See http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
  */
 
 /* nettle, low-level cryptographics library
@@ -86,7 +88,7 @@ K[64] =
    64-word expanded input array W, where the first 16 are copies of the input
    data, and the remaining 64 are defined by
 
-        W[ t ] = s1(W[t-2] + W[t-7] + s0(W[i-15] + W[i-16]
+        W[ t ] = s1(W[t-2]) + W[t-7] + s0(W[i-15]) + W[i-16]
 
    This implementation generates these values on the fly in a circular
    buffer - thanks to Colin Plumb, colin@nyx10.cs.du.edu for this