Ccm.ccm.len_ok.three: def of bend-osdev-cipher-modes@0.1.0.0 Import: import bend-osdev-cipher-modes@0.1.0.0/ccm.bend as Ccm Lines 87-94 of bend-osdev-cipher-modes@0.1.0.0/ccm.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cipher-modes@0.1.0.0/ccm.bend&start_line=87&end_line=94 import Base # the message must be shorter than 2^(8L) bytes: a bound only for L = 2 or 3 # (with L >= 4 every list is shorter) def ccm.len_ok.three(three: Bool, +n: Nat) -> Bool: match three: case True{}: U32.is_lt(U32.from_nat(n), 16777216) case False{}: True{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt