law vmac_accepts

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

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/vmac.bend as Vm

207# VMAC over every block cipher and nonce length (vmac.bend) accepts what it
208# computes
209law vmac_accepts:
210  for ~K: Data
211  for ~Blk: Data
212  for ~bsize: Nat
213  for ~enc: K -> Blk -> Blk
214  for ~blk_of: B.Octets -> Maybe<&2, Blk>
215  for ~blk_to: Blk -> B.Octets
216  for ~nlen: Nat
217  for +kk: Vm.CrVmacKey<K>
218  for +m: B.Octets
219  {Vm.CrVmac.verify(~K, ~Blk, ~bsize, ~enc, ~blk_of, ~blk_to, ~nlen, kk, m, Vm.CrVmac.mac(~K, ~Blk, ~bsize, ~enc, ~blk_of, ~blk_to, ~nlen, kk, m)) == True{} : Bool}

Uses (8)

Used by (0)

No other definition uses this definition.