law hmac_crc64_streaming
import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWSimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-word64@0.1.0.0/word64.bend as W
import bend-osdev-crc@0.1.0.0/crc.bend as C
import bend-osdev-crypto@0.1.0.0/hmac.bend as Hm
import bend-osdev-crypto@0.1.0.0/inst_crc.bend as CR
1193# HMAC over CRC-64 of any parameter set (crc): the state after a ++ b is the state after a, then b
1194law hmac_crc64_streaming:
1195 for ~spec: C.Crc64Spec
1196 for s: Hm.CrHmacState<W.W64>
1197 for +a: B.Octets
1198 for +b: B.Octets
1199 {Hm.CrHmac.update(~W.W64, ~CR.CrCrc64.update(~spec), s, B.Octets.append(a, b)) == Hm.CrHmac.update(~W.W64, ~CR.CrCrc64.update(~spec), Hm.CrHmac.update(~W.W64, ~CR.CrCrc64.update(~spec), s, a), b) : Hm.CrHmacState<W.W64>}
Uses (8)
Used by (0)
No other definition uses this definition.