law hmac_streebog256_streaming

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

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/streebog.bend as HST

1450# HMAC over Streebog-256 (hashes): the state after a ++ b is the state after a, then b
1451law hmac_streebog256_streaming:
1452  for s: Hm.CrHmacState<Hs.HsMdState<HST.HsStbCv>>
1453  for +a: B.Octets
1454  for +b: B.Octets
1455  {Hm.CrHmac.update(~Hs.HsMdState<HST.HsStbCv>, ~HST.HsStreebog.update, s, B.Octets.append(a, b)) == Hm.CrHmac.update(~Hs.HsMdState<HST.HsStbCv>, ~HST.HsStreebog.update, Hm.CrHmac.update(~Hs.HsMdState<HST.HsStbCv>, ~HST.HsStreebog.update, s, a), b) : Hm.CrHmacState<Hs.HsMdState<HST.HsStbCv>>}

Uses (8)

Used by (0)

No other definition uses this definition.