Cts.cr.cts.b.go: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/cts.bend as Cts Lines 25-31 of bend-osdev-crypto@0.1.0.0/cts.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/cts.bend&start_line=25&end_line=31 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B # a block of bytes encrypted or decrypted (f is the cipher's enc or dec) def cr.cts.b.go(~K: Data, ~Blk: Data, ~f: K -> Blk -> Blk, ~blk_to: Blk -> B.Octets, +k: K, x: Maybe<&2, Blk>, +o: B.Octets) -> B.Octets: match x: case None{}: o case Some{b}: blk_to(f(k, b)) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets