diff --git a/cbits/cryptonite_poly1305.c b/cbits/cryptonite_poly1305.c index 60dc5e0..3ae193e 100644 --- a/cbits/cryptonite_poly1305.c +++ b/cbits/cryptonite_poly1305.c @@ -132,7 +132,7 @@ void cryptonite_poly1305_update(poly1305_ctx *ctx, uint8_t *data, uint32_t lengt /* fill the remaining bytes in the partial buffer */ if (length) { memcpy(ctx->buf + ctx->index, data, length); - ctx->index = length; + ctx->index += length; } }