commit | bc77f56f79f6ae155e9eb26263ed686ef28b47ec | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Feb 23 10:36:21 2010 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Feb 23 10:36:21 2010 +0100 |
tree | d06ef40353dd6c5b6a9e5a639e0ee024f0d72edf | |
parent | d3e829b399a44b6d6ce9596a05f7a4bff5025573 [diff] [blame] |
Fix bug in sha256 verify It was using twice as large data block as it should have been, causing verify failures. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/verify.c b/verify.c index 59f1ddf..c894b60 100644 --- a/verify.c +++ b/verify.c
@@ -212,7 +212,7 @@ { void *p = io_u_verify_off(hdr, io_u, header_num); struct vhdr_sha256 *vh = hdr_priv(hdr); - uint8_t sha256[128]; + uint8_t sha256[64]; struct sha256_ctx sha256_ctx = { .buf = sha256, };