Commit 166e52d0 authored by Niels Möller's avatar Niels Möller
Browse files

(do_sha_digest): Don't call sha1_final and sha1_init.

Rev: src/sha.c:1.9
parent e3bf9569
......@@ -54,9 +54,7 @@ do_sha_digest(struct hash_instance *s,
{
CAST(sha_instance, self, s);
sha1_final(&self->ctx);
sha1_digest(&self->ctx, SHA1_DIGEST_SIZE, dst);
sha1_init(&self->ctx);
}
static struct hash_instance *
......
Supports Markdown
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