Check.err: def of bend-osdev-aead@0.1.0.0 Import: import bend-osdev-aead@0.1.0.0/check.bend as Check Lines 36-51 of bend-osdev-aead@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-aead@0.1.0.0/check.bend&start_line=36&end_line=51 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.CrBadNonceLength{n}: cat("bad nonce length ", Nat.show(n)) case Cr.CrNotBlockMultiple{n}: cat("not whole blocks ", Nat.show(n)) case Cr.CrTagMismatch{}: "tag mismatch" 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-aead@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