From: Jens Axboe Date: Fri, 16 Jan 2015 23:10:43 +0000 (-0700) Subject: crc/test: sha1 should do _final() after _update() X-Git-Tag: fio-2.2.5~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cbe000462519f8d8bfeb119029177a5a3788296a;p=fio.git crc/test: sha1 should do _final() after _update() Signed-off-by: Jens Axboe --- diff --git a/crc/test.c b/crc/test.c index bc5cc456..dbc5653f 100644 --- a/crc/test.c +++ b/crc/test.c @@ -111,8 +111,10 @@ static void t_sha1(struct test_type *t, void *buf, size_t size) fio_sha1_init(&ctx); - for (i = 0; i < NR_CHUNKS; i++) + for (i = 0; i < NR_CHUNKS; i++) { fio_sha1_update(&ctx, buf, size); + fio_sha1_final(&ctx); + } } static void t_sha256(struct test_type *t, void *buf, size_t size)