[XFRM]: Extract common hashing code into xfrm_hash.[ch]