def constant
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly.bend as Polyimport Base
51# The constant polynomial c as a residue.
52def constant(n: Nat, c: Bool) -> Word(n):
53 match n:
54 case 0n:
55 WNil{}
56 case 1n+p:
57 WCon{c, Word.zero(p)}
Uses (6)
Used by (7)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly:reduce
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:constant_false_l
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:constant_false_xor
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:constant_xor
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:red_add
- …