Allow HmacSha256/Sha256 to calculate the digest of empty buffers.