Content-addressable storage with support for multiple hash algorithms