o Code simplification and refactoring: - Refactors the hashing API to return negative values for errors as is done as a standard throughout the codebase. - Refactors calling functions to expect negative values for errors.