'Called when we receive a MSG_NEWKEYS message.  No payload.
If we\'ve finished setting up our own keys, start using them.
Otherwise, remember that we\'ve received this message.
@type packet: L{bytes}
@param packet: The message data.'

def ssh_NEWKEYS(self, packet):

    if (packet != ''):
        self.sendDisconnect(DISCONNECT_PROTOCOL_ERROR, 'NEWKEYS    takes    no    data')
        return
    if (not self.nextEncryptions.encBlockSize):
        self._gotNewKeys = 1
        return
    self._newKeys()
    self.connectionSecure()
