law hmac_sha3_256_split

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

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-crypto@0.1.0.0/inst_sha3.bend as S3

1223# HMAC over SHA3-256 (bend-collections): the tag in pieces is the tag in one call, for every split
1224law hmac_sha3_256_split:
1225  for +kk: Hm.CrHmacKey
1226  for +a: B.Octets
1227  for +b: B.Octets
1228  {Hm.CrHmac.finish(~S3.CrSha3State, ~S3.CrSha3.init(), ~S3.CrSha3.update, ~S3.CrSha3.final, Hm.CrHmac.update(~S3.CrSha3State, ~S3.CrSha3.update, Hm.CrHmac.update(~S3.CrSha3State, ~S3.CrSha3.update, Hm.CrHmac.start(~S3.CrSha3State, ~S3.CrSha3.init(), ~S3.CrSha3.update, kk), a), b)) == Hm.CrHmac.mac(~S3.CrSha3.sha3_256, kk, B.Octets.append(a, b)) : B.Octets}

Uses (15)

Used by (0)

No other definition uses this definition.