"""ifself._mac_tagisnotNone:returnself._mac_tagifself._data_size > self._max_size:raiseValueError("MAC is unsafe for this message")iflen(self._cache) ==0andself._before_last_ctisnotNone:# Last block was fullpt =strxor(strxor(self._before_last_ct, self._k1), self._last_pt)else...
self.__key_xor =lambdas:''.join(chr(ord(x) ^ self.__key_gen())forxins)iflen(key) ==1:try:fromCrypto.Util.strxorimportstrxor_cc = ord(key) self.__key_xor =lambdas:strxor_c(s, c)exceptImportError: sys.stderr.write('Load Crypto.Util.strxor Failed, Use Pure Python Instead.\n'...