applying HKDF at both the client and the server
HKDF is deterministic, that is, given the same input; IKM (Input Keying Material), salt, and contextual info (these last two are optional, but recommended), and provided that the same underlying hash function is used (SHA256, for example), the output will always be the same.