CryptHashSessionKey

[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool CryptHashSessionKey(
   IntPtr hHash,
   IntPtr hKey,
   uint dwFlags
);

Microsoft documentation: Link

Last updated