def err
import bend-osdev-cast5@0.1.0.0/check.bend as Checkimport 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)