law Verify.value
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/mac/laws.bend as Lawsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend as MAC
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/hmac.bend as Spec
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/subtle.bend as SubtleSpec
21# verify is the reference comparison of the tag with the specified HMAC.
22law Verify.value:
23 for +key: List<&2, U32>
24 for +msg: List<&2, U32>
25 for +tag: List<&2, U32>
26 {MAC.verify(key, msg, tag) == SubtleSpec.equal(Spec.hmac(key, msg), tag) : Bool}
Uses (10)
Used by (0)
No other definition uses this definition.