def cbc.d2.fast

bend-osdev-cbc@0.1.0.0 · cbc.bend:121

import bend-osdev-cbc@0.1.0.0/cbc.bend as Cbc
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M

121def cbc.d2.fast(~K: Data, ~dec: K -> M.CmBlock -> M.CmBlock, +k: K, v: M.CmBlock, s: M.CmSplit, +n: Nat) -> Result<&2, &2, M.CmError, B.Octets>:
122  match s:
123    case M.CmSplit{bs, tail}:
124      match tail:
125        case Nil{}:
126          Done{B.Octets.of_list(M.cm.join_onto.fast(cbc.dec.fast(~K, ~dec, k, bs, v), Nil{}))}
127        case Con{h, t}:
128          Fail{M.CmNotBlockMultiple{n}}

Uses (10)

Used by (3)