law hmac_ripemd160_streaming

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

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/ripemd160.bend as HRM

1372# HMAC over RIPEMD-160 (hashes): the state after a ++ b is the state after a, then b
1373law hmac_ripemd160_streaming:
1374  for s: Hm.CrHmacState<Hs.HsMdState<Hs.HsW5>>
1375  for +a: B.Octets
1376  for +b: B.Octets
1377  {Hm.CrHmac.update(~Hs.HsMdState<Hs.HsW5>, ~HRM.HsRipemd160.update, s, B.Octets.append(a, b)) == Hm.CrHmac.update(~Hs.HsMdState<Hs.HsW5>, ~HRM.HsRipemd160.update, Hm.CrHmac.update(~Hs.HsMdState<Hs.HsW5>, ~HRM.HsRipemd160.update, s, a), b) : Hm.CrHmacState<Hs.HsMdState<Hs.HsW5>>}

Uses (8)

Used by (0)

No other definition uses this definition.