def err
import bend-osdev-cipher-core@0.1.0.0/check.bend as Checkimport Base
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L
12def err(e: L.LcError) -> String:
13 match e:
14 case L.LcBadKeyLength{n}:
15 "bad key " ++ Nat.show(n)
16 case L.LcBadIvLength{n}:
17 "bad iv " ++ Nat.show(n)
18 case L.LcNotBlockMultiple{n}:
19 "not whole blocks " ++ Nat.show(n)