def coefficients
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly.bend as Polyimport Base
74# The coefficients of a residue, as a polynomial.
75def coefficients(n: Nat, w: Word(n)) -> List<&2, Bool>:
76 match n w:
77 case 0n WNil{}:
78 Nil{}
79 case 1n+p WCon{b, t}:
80 b <> coefficients(p, t)
Uses (6)
Used by (9)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm:block_bytes
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm:str32
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm:mul
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:coefficients_le
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:mul_sa
- …