def _construct_reconfiguration_keMsg_coammand(self):
     ke_command = cmf_msgs.KeyExchangeCommand()
     ke_command.sender_id = 1000
     reconf_msg = cmf_msgs.ReconfigurationRequest()
     reconf_msg.command = ke_command
     reconf_msg.signature = bytes()
     reconf_msg.additional_data = bytes()
     return reconf_msg
예제 #2
0
 def _construct_reconfiguration_keMsg_command(self,
                                              target_replicas=[],
                                              tls=False):
     ke_command = cmf_msgs.KeyExchangeCommand()
     ke_command.sender_id = 1000
     ke_command.target_replicas = target_replicas
     ke_command.tls = tls
     return self._construct_basic_reconfiguration_request(ke_command)
예제 #3
0
 def _construct_reconfiguration_keMsg_coammand(self, target_replicas=[]):
     ke_command = cmf_msgs.KeyExchangeCommand()
     ke_command.sender_id = 1000
     ke_command.target_replicas = target_replicas
     reconf_msg = cmf_msgs.ReconfigurationRequest()
     reconf_msg.command = ke_command
     reconf_msg.additional_data = bytes()
     reconf_msg.signature = bytes(0)
     reconf_msg.signature = self._sign_reconf_msg(reconf_msg)
     return reconf_msg