law hmac_crc32_vector
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-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
341# HMAC over CRC-32 (the key "key", the message "The quick brown fox"): the
342# value of Python's hmac module over binascii.crc32 (ref/gen.py checks the
343# same construction on random keys and messages)
344law hmac_crc32_vector:
345 {Hm.CrHmac.mac(~CR.CrCrc32.digest(~C.crc32.spec()), Hm.CrHmac.key(~64n, ~CR.CrCrc32.digest(~C.crc32.spec()), B.Octets.of_string("key")), B.Octets.of_string("The quick brown fox")) == B.Octets.of_list([69, 52, 205, 87]) : B.Octets}
Uses (8)
Used by (0)
No other definition uses this definition.