dclass: Add legacy_hash.