#NEWLINE# def ssh_NEWKEYS( self , packet ) : #NEWLINE# #INDENT# '\n        Called when we get a MSG_NEWKEYS message.  No payload.\n        When we get this, the keys have been set on both sides, and we\n        start using them to encrypt and authenticate the connection.\n\n        @type packet: L{bytes}\n        @param packet: The message data.\n        ' #NEWLINE# if ( self != b'' ) : #NEWLINE# #INDENT# self . sendDisconnect ( DISCONNECT_PROTOCOL_ERROR , b'NEWKEYS takes no data' ) #NEWLINE# return #NEWLINE# #UNINDENT# self . _newKeys ( )