def cm.check
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModesimport Base
263def cm.check(ok: Bool, e: CmError) -> Result<&2, &2, CmError, Unit>:
264 match ok:
265 case True{}:
266 Done{Unit{}}
267 case False{}:
268 Fail{e}