refactoring: OutputDigest inlined