def verify
import bend-collections@1.0.0.0/src/crypto/poly1305/poly1305.bend as Poly1305import Base
import bend-collections@1.0.0.0/src/crypto/subtle.bend as Subtle
85# True exactly when the key has 32 bytes and tag is the tag of msg; the tags
86# are compared in constant time (src/crypto/subtle.bend).
87def verify(+key: List<&2, U32>, +msg: List<&2, U32>, +tag: List<&2, U32>) -> Bool:
88 Bool.and(has_key(key), Subtle.eq(mac(key, msg), tag))
Uses (7)
Used by (0)
No other definition uses this definition.