def scal_in

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

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/poly.bend as PL

172def scal_in(+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.scal(k, a), WD.sc(28n, one)) == True{} : Bool}:
173  +e = PL.scal_okb(one, h1, 32n, k, a, WD.sc(17n, one), 255n, hk, ha, ms_lt(one, h1))
174  PL.okb_mono(32n, F.scal(k, a), Nat.mul(WD.sc(17n, one), 255n), WD.sc(28n, one), ms_le(one, h1), e)

Uses (14)

Used by (2)