Laws.Sign.correct: 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 9-13 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=9&end_line=13 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 # sign is RFC 2104 / FIPS 198-1 HMAC over FIPS 180-4 SHA-256. law Sign.correct: for +key: List<&2, U32> for +msg: List<&2, U32> {MAC.sign(key, msg) == Spec.hmac(key, msg) : List<&2, U32>} Uses (5): 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/spec/crypto/hmac.bend&name=hmac https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&name=sign