law hmac_md5_streaming

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

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
import bend-osdev-hashes@0.1.0.0/hashes.bend as Hs
import bend-osdev-hashes@0.1.0.0/md5.bend as HM5

1294# HMAC over MD5 (hashes): the state after a ++ b is the state after a, then b
1295law hmac_md5_streaming:
1296  for s: Hm.CrHmacState<Hs.HsMdState<Hs.HsW4>>
1297  for +a: B.Octets
1298  for +b: B.Octets
1299  {Hm.CrHmac.update(~Hs.HsMdState<Hs.HsW4>, ~HM5.HsMd5.update, s, B.Octets.append(a, b)) == Hm.CrHmac.update(~Hs.HsMdState<Hs.HsW4>, ~HM5.HsMd5.update, Hm.CrHmac.update(~Hs.HsMdState<Hs.HsW4>, ~HM5.HsMd5.update, s, a), b) : Hm.CrHmacState<Hs.HsMdState<Hs.HsW4>>}

Uses (8)

Used by (0)

No other definition uses this definition.