summaryrefslogtreecommitdiff
path: root/chacha-poly1305.c
diff options
context:
space:
mode:
Diffstat (limited to 'chacha-poly1305.c')
-rw-r--r--chacha-poly1305.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chacha-poly1305.c b/chacha-poly1305.c
index 7a423e1e..ea8b2952 100644
--- a/chacha-poly1305.c
+++ b/chacha-poly1305.c
@@ -97,7 +97,8 @@ static void
poly1305_update (struct chacha_poly1305_ctx *ctx,
size_t length, const uint8_t *data)
{
- MD_UPDATE (ctx, length, data, COMPRESS, (void) 0);
+ ctx->index = _nettle_poly1305_update (&(ctx)->poly1305,
+ ctx->block, ctx->index, length, data);
}
static void