diff options
Diffstat (limited to 'poly1305-aes.c')
-rw-r--r-- | poly1305-aes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/poly1305-aes.c b/poly1305-aes.c index a4050254..374d5a78 100644 --- a/poly1305-aes.c +++ b/poly1305-aes.c @@ -56,13 +56,12 @@ poly1305_aes_set_nonce (struct poly1305_aes_ctx *ctx, memcpy (ctx->nonce, nonce, POLY1305_AES_NONCE_SIZE); } -#define COMPRESS(ctx, data) _nettle_poly1305_block(&(ctx)->pctx, (data), 1) - void poly1305_aes_update (struct poly1305_aes_ctx *ctx, size_t length, const uint8_t *data) { - MD_UPDATE (ctx, length, data, COMPRESS, (void) 0); + ctx->index = _nettle_poly1305_update (&(ctx)->pctx, + ctx->block, ctx->index, length, data); } void |