def lengths_ok

bend-collections@1.0.0.0 · src/crypto/aead/chacha20poly1305.bend:85

import bend-collections@1.0.0.0/src/crypto/aead/chacha20poly1305.bend as Chacha20poly1305
import Base

85def lengths_ok(+key: List<&2, U32>, +nonce: List<&2, U32>, n: Nat) -> Bool:
86  Bool.and(Nat.is_eq(List.length(&2, U32, key), 32n), Nat.is_eq(List.length(&2, U32, nonce), n))

Uses (7)

Used by (4)