Aead.valid: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/aead.bend as Aead Lines 76-77 of bend-collections@1.0.0.0/src/crypto/aead.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/aead.bend&start_line=76&end_line=77 import Base def valid(+alg: Alg, +key: List<&2, U32>, +nonce: List<&2, U32>) -> Bool: Bool.and(Nat.is_eq(List.length(&2, U32, key), key_size(alg)), Nat.is_eq(List.length(&2, U32, nonce), nonce_size(alg))) Uses (9): 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=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/aead.bend&name=Alg https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/aead.bend&name=key_size https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/aead.bend&name=nonce_size