def wide_in

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

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

137def wide_in(+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.wide(F.conv(a, b)), WD.sc(28n, one)) == True{} : Bool}:
138  +zs = F.conv(a, b)
139  +hge = conv_ge(31n, a, b, 32n, 255n, ha, PL.okb_len_ge(32n, b, 255n, hb))
140  +hle = PL.conv_len_le(32n, 32n, a, b, PL.okb_len_le(32n, a, 255n, ha), PL.okb_len_le(32n, b, 255n, hb))
141  wide_okb(one, h1, zs, conv_lea21(one, h1, a, b, ha, hb), hge, hle)

Uses (14)

Used by (2)