def decrypt(key, msg, iv=None, padding="PKCS#7", b64dec=True):
    if b64dec:
        data = b64decode(msg)
    else:
        data = msg

    _iv = data[:AES.block_size]
    if iv:
        assert iv == _iv
    cipher, iv = build_cipher(key, iv)
    res = cipher.decrypt(data)[AES.block_size:]
    if padding in ["PKCS#5", "PKCS#7"]:
        res = res[:-indexbytes(res, -1)]
    return res.decode("utf-8")
Same as unit_propagate, but arguments are expected to be in integer
dataset/ETHPy150Open rohe/pyoidc/src/oic/utils/aes.py/decrypt--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/logic/algorithms/dpll.py/unit_propagate_int_repr