Commit 27ee8ac2 authored by Niels Möller's avatar Niels Möller
Browse files

Fixed init call in sha512_256_digest.

parent 088b606b
2014-04-09 Niels Möller <nisse@lysator.liu.se> 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. * testsuite/testutils.c (test_hash): Removed redundant init call.
Tests that digest implies init. Tests that digest implies init.
......
...@@ -302,5 +302,5 @@ sha512_256_digest(struct sha512_ctx *ctx, ...@@ -302,5 +302,5 @@ sha512_256_digest(struct sha512_ctx *ctx,
assert(length <= SHA256_DIGEST_SIZE); assert(length <= SHA256_DIGEST_SIZE);
sha512_write_digest(ctx, length, digest); sha512_write_digest(ctx, length, digest);
sha512_224_init(ctx); sha512_256_init(ctx);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment