def mac
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/poly1305.bend as Poly1305import Base
120# The same function, split on the message first so that a proof about an
121# unknown message does not unfold it.
122def mac(+key: List<&2, U32>, +msg: List<&2, U32>) -> List<&2, U32>:
123 match msg:
124 case Nil{}: poly1305_mac(key, [])
125 case b <> rest: poly1305_mac(key, b <> rest)
Uses (3)
Used by (10)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha20poly1305:tag
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/chacha20poly1305:tag_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/mac:mac_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/mac:mac_length
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/proof:rej_c
- …