commit | bf2d81692e9afaece1026702ad62433472739185 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Jan 16 16:10:43 2015 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:14 2015 -0800 |
tree | 36c4eed01629e4fa069820ee09d7c85682edb2ef | |
parent | 903b3a01ba20bb122b7628d45fcef37bc6222f0d [diff] |
crc/test: sha1 should do _final() after _update() Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/crc/test.c b/crc/test.c index bc5cc45..dbc5653 100644 --- a/crc/test.c +++ b/crc/test.c
@@ -111,8 +111,10 @@ 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)