def equal
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/subtle.bend as Subtleimport Base
13def equal(a: List<&2, U32>, b: List<&2, U32>) -> Bool:
14 match a b:
15 case Nil{} Nil{}:
16 True{}
17 case x <> xs y <> ys:
18 Bool.and(U32.is_eq(x, y), equal(xs, ys))
19 case _ _:
20 False{}
Uses (5)
Used by (32)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha20poly1305:open_split
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/subtle/laws:Eq.value
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm:open_checked
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/subtle_eq:equal_sound
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/aead:forgery
- …