def verify

bend-collections-laws-crypto@1.0.0.0 · src/crypto/poly1305/poly1305.bend:85

import bend-collections-laws-crypto@1.0.0.0/src/crypto/poly1305/poly1305.bend as Poly1305
import Base
import bend-collections-laws-crypto@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 (2)