def cr.blocks_of.some

bend-osdev-crypto@0.1.0.0 · modes.bend:145

import bend-osdev-crypto@0.1.0.0/modes.bend as Modes
import Base
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr

145def cr.blocks_of.some(~Blk: Data, m: Maybe<&2, List<&2, Blk>>, +len: Nat) -> Result<&2, &2, Cr.CrError, List<&2, Blk>>:
146  match m:
147    case None{}:
148      Fail{Cr.CrBadBlockSize{len}}
149    case Some{bs}:
150      Done{bs}

Uses (5)

Used by (1)