law hmac_accepts

bend-osdev-crypto@0.1.0.0 · LAWS.bend:182

import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crypto@0.1.0.0/hmac.bend as Hm

182law hmac_accepts:
183  for ~digest: B.Octets -> B.Octets
184  for +kk: Hm.CrHmacKey
185  for +m: B.Octets
186  {Hm.CrHmac.verify(~digest, kk, m, Hm.CrHmac.mac(~digest, kk, m)) == True{} : Bool}

Uses (6)

Used by (0)

No other definition uses this definition.