Пример #1
0
    def key_schedule_rounds(self, inputkey, inputround, desiredround):
        """Changes the round of inputkey from inputround to desiredround

        Args:
            inputkey (list): key that you want to change the round of
            inputround (int): Round that inputkey is currently in
            desiredround (int): Round that you want inputkey to be in

        Returns:
            desired key (list)
        """
        return key_schedule_rounds(inputkey, inputround, desiredround)
Пример #2
0
 def key_schedule_rounds(self, inputkey, inputround, desiredround):
     """Helper function: takes AES key from one round to another round-eky """
     return key_schedule_rounds(inputkey, inputround, desiredround)
Пример #3
0
 def processKnownKey(self, inpkey):
     k = key_schedule_rounds(inpkey, 0, 10)
     k = self.shiftrows(k)
     return k
Пример #4
0
 def processKnownKey(self, inpkey):
     return key_schedule_rounds(inpkey, 0, 10)