Merge pull request #119 from flashcurd/master

Update the index into a partial Poly1305 buffer instead of overwriting
This commit is contained in:
Vincent Hanquez 2016-12-09 07:43:58 +00:00 committed by GitHub
commit 00d9120f90

View File

@ -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;
}
}