'Set a key and generate the expanded key'

def setKey(self, key):

    assert (len(key) == (self.Nk * 4)), 'Key    length    must    be    same    as    keySize    parameter'
    self.__expandedKey = keyExpansion(self, key)
    self.reset()
