added real checksumming for SHA-1 and SHA-256