def scale
import bend-collections-laws-crypto@1.0.0.0/src/crypto/poly1305/limbs.bend as Limbsimport Base
32# Every limb times c, no carries.
33def scale(+c: U32, a: List<&2, U32>) -> List<&2, U32>:
34 match a:
35 case Nil{}: Nil{}
36 case x <> t: U32.mul(x, c) <> scale(c, t)
Uses (3)
Used by (11)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/poly1305/limbs:fold
- bend-collections-laws-crypto@1.0.0.0/src/crypto/poly1305/limbs:mul
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/value:scale_le
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/step:fold_fit
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/value:len_scale
- …