def mul_small_okb

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/curve25519/mulw.bend:176

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/mulw.bend as Mulw
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as F
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/word.bend as WD
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs.bend as LM
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/reduce.bend as RD

176def mul_small_okb(+one: Nat, +h1: {one == 1n : Nat}, +a: List<&2, U32>, +k: U32, +ha: {LM.okb(32n, a, 255n) == True{} : Bool}, +hk: {Nat.is_le(v(k), WD.sc(17n, one)) == True{} : Bool}) -> {LM.okb(32n, F.mul_small(a, k), 255n) == True{} : Bool}:
177  RD.reduce_okb(one, h1, F.scal(k, a), scal_in(one, h1, a, k, ha, hk))

Uses (12)

Used by (1)