Cbc.cbc.enc: def of bend-osdev-cbc@0.1.0.0 Import: import bend-osdev-cbc@0.1.0.0/cbc.bend as Cbc Lines 16-22 of bend-osdev-cbc@0.1.0.0/cbc.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cbc@0.1.0.0/cbc.bend&start_line=16&end_line=22 import Base import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M def cbc.enc(~K: Data, ~enc: K -> M.CmBlock -> M.CmBlock, +k: K, bs: List<&2, M.CmBlock>, iv: M.CmBlock) -> List<&2, M.CmBlock>: match bs: case Nil{}: Nil{} case Con{p, t}: +c = enc(k, M.CmBlock.xor(iv, p)) Con{c, cbc.enc(~K, ~enc, k, t, c)} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&name=CmBlock https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&name=CmBlock.xor