Check.err: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/check.bend as Check Lines 81-98 of bend-osdev-crypto@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/check.bend&start_line=81&end_line=98 import Base import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr def err(e: Cr.CrError) -> String: match e: case Cr.CrBadKeyLength{n}: cat("bad key length ", Nat.show(n)) case Cr.CrBadIvLength{n}: cat("bad iv length ", Nat.show(n)) case Cr.CrNotBlockMultiple{n}: cat("not whole blocks ", Nat.show(n)) case Cr.CrBadBlockSize{n}: cat("bad block size ", Nat.show(n)) case Cr.CrTagMismatch{}: "tag mismatch" case Cr.CrBadOutputLength{n}: cat("bad output length ", Nat.show(n)) case Cr.CrTooShort{n}: cat("too short ", Nat.show(n)) case _: "other error" Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/check.bend&name=cat https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/crypto.bend&name=CrError