[PATCH openEuler-5.10 26/29] af_unix: Add helpers to calculate hashes.