async def verify_credentials(self):
_, public_key = self.srp.initialize()<EOL>msg = messages.crypto_pairing({<EOL>tlv8.TLV_SEQ_NO: b'<STR_LIT>',<EOL>tlv8.TLV_PUBLIC_KEY: public_key})<EOL>resp = await self.protocol.send_and_receive(<EOL>msg, generate_identifier=False)<EOL>resp = _get_pairing_data(resp)<EOL>session_pub_key = resp[tlv8.TLV_PUBLIC_KEY]<EOL>encrypted = resp[tlv8.TLV_ENCRYPTED_DATA]<EOL>log_binary(_LOGGER,<EOL>'<STR_LIT>',<EOL>Public=self.credentials.ltpk,<EOL>Encrypted=encrypted)<EOL>encrypted_data = self.srp.verify1(<EOL>self.credentials, session_pub_key, encrypted)<EOL>msg = messages.crypto_pairing({<EOL>tlv8.TLV_SEQ_NO: b'<STR_LIT>',<EOL>tlv8.TLV_ENCRYPTED_DATA: encrypted_data})<EOL>resp = await self.protocol.send_and_receive(<EOL>msg, generate_identifier=False)<EOL>self._output_key, self._input_key = self.srp.verify2()<EOL>
Verify credentials with device.