summaryrefslogtreecommitdiff
path: root/sha3-384.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2019-12-25 16:30:50 +0100
committerNiels Möller <nisse@lysator.liu.se>2019-12-25 16:30:50 +0100
commitf77bd0a33c255b4fd6cac4f8be4d1cde8da0980b (patch)
tree55208e3fbd427fe1a517720bbf1cee5262c2caee /sha3-384.c
parentd4c3e2ee91ddd992ae155b9375e6bc25e98b22f1 (diff)
downloadnettle-f77bd0a33c255b4fd6cac4f8be4d1cde8da0980b.tar.gz
Generalize _sha3_pad to take magic value as argument.
Diffstat (limited to 'sha3-384.c')
-rw-r--r--sha3-384.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3-384.c b/sha3-384.c
index c0dec517..83fd1eb9 100644
--- a/sha3-384.c
+++ b/sha3-384.c
@@ -63,7 +63,7 @@ sha3_384_digest(struct sha3_384_ctx *ctx,
size_t length,
uint8_t *digest)
{
- _sha3_pad (&ctx->state, SHA3_384_BLOCK_SIZE, ctx->block, ctx->index);
+ _sha3_pad_hash (&ctx->state, SHA3_384_BLOCK_SIZE, ctx->block, ctx->index);
_nettle_write_le64 (length, digest, ctx->state.a);
sha3_384_init (ctx);
}