22.214.171.124 Receive PIN Challenge Message
When the Miracast Sink receives a PIN Challenge message (section 126.96.36.199) and it is in the Waiting for PIN state (section 3.1.1), it MUST validate that the PIN Challenge TLV (section 188.8.131.52) contains the correct salted hash of the PIN.
The salted hash of the PIN is derived as defined in section 184.108.40.206.1, using IP address of the Sink for the TCP connection over 7250.
If the PIN Challenge TLV contains the correct hash value, then the Sink MUST respond with a PIN Response message (section 2.2.6) containing its own salted hash (derived in the same way but using the Sink IP address) in the PIN Challenge TLV and the PIN Response Reason TLV (section 220.127.116.11) with the value 0x00.
If the PIN Challenge TLV contains a different hash value, then the Sink MUST respond with a PIN Response message containing the PIN Response Reason 0x01 and no PIN Challenge TLV.
In all other cases, the Sink MUST respond with a PIN Response message containing the PIN Response Reason 0x02 and MUST tear down the connection on TCP port 7250.