def aes256cbc_dec(key, iv, data): pt = pkcs7_unpad(dec_cbc(aes(key), iv)(data)) return pt
def aes256cbc_enc(key, iv, data): assert len(iv) == 128/8, len(iv) assert len(key) == 256/8, len(key) ct = enc_cbc(aes(key), iv)(pkcs7_pad(data)) return ct