Mac.CrMac.verify_tag: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/mac.bend as Mac Lines 26-28 of bend-osdev-crypto@0.1.0.0/mac.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/mac.bend&start_line=26&end_line=28 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B # whether t is m's tag, comparing every byte def CrMac.verify_tag(~K: Data, ~compute: K -> B.Octets -> B.Octets, k: K, m: B.Octets, t: B.Octets) -> Bool: B.Octets.is_eq(compute(k, m), t) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.is_eq