Return proper value in sha256_fd()