def err

bend-osdev-blowfish@0.1.0.0 · check.bend:10

import bend-osdev-blowfish@0.1.0.0/check.bend as Check
import Base
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L

10def err(e: L.LcError) -> String:
11  match e:
12    case L.LcBadKeyLength{n}:
13      "bad key " ++ Nat.show(n)
14    case L.LcBadIvLength{n}:
15      "bad iv " ++ Nat.show(n)
16    case L.LcNotBlockMultiple{n}:
17      "not whole blocks " ++ Nat.show(n)

Uses (4)

Used by (2)