Laws.Verify.value: law of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/mac/laws.bend as Laws Lines 21-26 of bend-collections-laws-crypto@1.0.0.0/proofs/crypto/mac/laws.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/mac/laws.bend&start_line=21&end_line=26 import 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 # verify is the reference comparison of the tag with the specified HMAC. law Verify.value: for +key: List<&2, U32> for +msg: List<&2, U32> for +tag: List<&2, U32> {MAC.verify(key, msg, tag) == SubtleSpec.equal(Spec.hmac(key, msg), tag) : Bool} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/mac/hmac.bend&name=sign_correct https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/subtle/laws.bend&name=Eq.value https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/hmac.bend&name=hmac https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/subtle.bend&name=equal https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&name=sign https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&name=verify https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/subtle.bend&name=eq