def CrLc.err

bend-osdev-crypto@0.1.0.0 · inst_lc.bend:18

import bend-osdev-crypto@0.1.0.0/inst_lc.bend as InstLc
import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr

18def CrLc.err(e: L.LcError) -> Cr.CrError:
19  match e:
20    case L.LcBadKeyLength{n}:
21      Cr.CrBadKeyLength{n}
22    case L.LcBadIvLength{n}:
23      Cr.CrBadIvLength{n}
24    case L.LcNotBlockMultiple{n}:
25      Cr.CrNotBlockMultiple{n}

Uses (2)

Used by (1)