AES256GCM.bytes_valid: def of qasim-bend-kit@0.1.0.2 Import: import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES256GCM Lines 4-10 of qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend: https://jend.leeeet.dev/read.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&start_line=4&end_line=10 import Base # AES-256-GCM with validated inputs and canonical envelope serialization. # Bytes use U32 storage, with validation certificates excluding values above 255. def bytes_valid(bytes: List<&2, U32>) -> Bool: match bytes: case Nil{}: True{} case head <> tail: U32.is_lt(head, 256) && bytes_valid(tail) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt