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)
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)
def processKnownKey(self, inpkey): k = key_schedule_rounds(inpkey, 0, 10) k = self.shiftrows(k) return k
def processKnownKey(self, inpkey): return key_schedule_rounds(inpkey, 0, 10)