def steps
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/ghash_defs.bend as GhashDefsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aes/gcm.bend as I
25# The implementation's steps over a list of coefficients.
26def steps(cs: List<&2, Bool>, acc: I.Acc) -> I.Acc:
27 match cs:
28 case Nil{}:
29 acc
30 case c <> r:
31 steps(r, I.step(bit(c), acc))
Uses (5)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/ghash:absorb_ok
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/ghash:mul_bytes_steps
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/ghash:steps_append
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/ghash:steps_ok
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/ghash_bits:mul_byte_steps