]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fixed init call in sha512_256_digest.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 9 Apr 2014 12:43:30 +0000 (14:43 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 9 Apr 2014 12:43:30 +0000 (14:43 +0200)
ChangeLog
sha512.c

index 9c17e4dcd0b7de74cc2e4a8e8e36c0be1f823a8f..3a9fa027f2c2c0705f4fb98534251944476809fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-04-09  Niels Möller  <nisse@lysator.liu.se>
 
+       * sha512.c (sha512_256_digest): Typo fix, call sha512_256_init.
+
        * testsuite/testutils.c (test_hash): Removed redundant init call.
        Tests that digest implies init.
 
index 24547e0d04af7a773ae114241a8a6d65f6867470..118bf260bbcdafc9bf63114fa3a3838597a24e1f 100644 (file)
--- a/sha512.c
+++ b/sha512.c
@@ -302,5 +302,5 @@ sha512_256_digest(struct sha512_ctx *ctx,
   assert(length <= SHA256_DIGEST_SIZE);
 
   sha512_write_digest(ctx, length, digest);
-  sha512_224_init(ctx);
+  sha512_256_init(ctx);
 }