def handleSenderKeyDistributionMessage(self, senderKeyDistributionMessage,
                                        axolotlAddress):
     groupId = senderKeyDistributionMessage.groupId
     axolotlSenderKeyDistributionMessage = SenderKeyDistributionMessage(
         serialized=senderKeyDistributionMessage.
         axolotl_sender_key_distribution_message)
     groupSessionBuilder = GroupSessionBuilder(self.store)
     senderKeyName = SenderKeyName(groupId, axolotlAddress)
     groupSessionBuilder.process(senderKeyName,
                                 axolotlSenderKeyDistributionMessage)
示例#2
0
 def group_create_session(self, groupid, participantid, skmsgdata):
     """
     :param groupid:
     :type groupid: str
     :param participantid:
     :type participantid: str
     :param skmsgdata:
     :type skmsgdata: bytearray
     :return:
     :rtype:
     """
     logger.debug("group_create_session(groupid=%s, participantid=%s, skmsgdata=[omitted])"
                  % (groupid, participantid))
     senderKeyName = SenderKeyName(groupid, AxolotlAddress(participantid, 0))
     senderkeydistributionmessage = SenderKeyDistributionMessage(serialized=skmsgdata)
     self._group_session_builder.process(senderKeyName, senderkeydistributionmessage)