From cbe000462519f8d8bfeb119029177a5a3788296a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 16 Jan 2015 16:10:43 -0700 Subject: [PATCH] crc/test: sha1 should do _final() after _update() Signed-off-by: Jens Axboe --- crc/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.25.1