PROOF.pcbc_dec_tr: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/PROOF.bend as PROOF Lines 322-327 of bend-osdev-crypto@0.1.0.0/PROOF.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/PROOF.bend&start_line=322&end_line=327 import Base import bend-osdev-crypto@0.1.0.0/modes.bend as Md import bend-osdev-crypto@0.1.0.0/pcbc.bend as Pc def pcbc_dec_tr(~K: Data, ~Blk: Data, ~dec: K -> Blk -> Blk, ~bxor: Blk -> Blk -> Blk, +k: K, bs: List<&2, Blk>, +v: Blk, +acc: List<&2, Blk>) -> {Pc.cr.pcbc.dec.go(~K, ~Blk, ~dec, ~bxor, k, bs, v, acc) == Md.cr.blks.rev_onto(~Blk, acc, Pc.cr.pcbc.dec(~K, ~Blk, ~dec, ~bxor, k, bs, v)) : List<&2, Blk>}: match bs: case Nil{}: {==} case Con{+c, t}: pcbc_dec_tr(~K, ~Blk, ~dec, ~bxor, k, t, bxor(bxor(dec(k, c), v), c), Con{bxor(dec(k, c), v), acc}) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/modes.bend&name=cr.blks.rev_onto https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/pcbc.bend&name=cr.pcbc.dec https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/pcbc.bend&name=cr.pcbc.dec.go