Simplify sha256_fd
Get the right size for the checksum buffer

Submitted by:	az