'Finish a key exchange by calling C{_keySetup} with the given arguments.
Also do extra whitebox stuff to satisfy that method\'s assumption that
some kind of key exchange has actually taken place.'

def simulateKeyExchange(self, sharedSecret, exchangeHash):

    self.proto._keyExchangeState = self.proto._KEY_EXCHANGE_REQUESTED
    self.proto._blockedByKeyExchange = []
    self.proto._keySetup(sharedSecret, exchangeHash)
