(self, key, nonce=None)
:param key: bytes, must be 16, 24 or 32 bytes long
        :param nonce: bytes, must be 16 bytes long
def __init__(self, key, nonce=None):
        """

        :param key: bytes, must be 16, 24 or 32 bytes long
        :param nonce: bytes, must be 16 bytes long
        """
        super(AESKey, self).__init__()
        if nonce is None:
            self.nonce = os.urandom(16)
            self.key = key
            self.cipher_core = AESModeOfOperationOFB(key=self.key, iv=self.nonce)
        else:
            self.nonce = nonce
            self.key = key
            self.cipher_core = AESModeOfOperationOFB(key=self.key, iv=self.nonce)
def __init__ ( self , key , nonce = None ) : super ( AESKey , self ) . __init__ ( ) if nonce is None : self . nonce = os . urandom ( 16 ) self . key = key self . cipher_core = AESModeOfOperationOFB ( key = self . key , iv = self . nonce ) else : self . nonce = nonce self . key = key self . cipher_core = AESModeOfOperationOFB ( key = self . key , iv = self . nonce )