def mul_okb

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

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/crypto/curve25519/limbs.bend as LM
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/reduce.bend as RD

143def mul_okb(+one: Nat, +h1: {one == 1n : Nat}, +a: List<&2, U32>, +b: List<&2, U32>, +ha: {LM.okb(32n, a, 255n) == True{} : Bool}, +hb: {LM.okb(32n, b, 255n) == True{} : Bool}) -> {LM.okb(32n, F.mul(a, b), 255n) == True{} : Bool}:
144  RD.reduce_okb(one, h1, F.wide(F.conv(a, b)), wide_in(one, h1, a, b, ha, hb))

Uses (10)

Used by (9)