def sq_okb

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

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

154def sq_okb(+one: Nat, +h1: {one == 1n : Nat}, +a: List<&2, U32>, +ha: {LM.okb(32n, a, 255n) == True{} : Bool}) -> {LM.okb(32n, F.sq(a), 255n) == True{} : Bool}:
155  mul_okb(one, h1, a, a, ha, ha)

Uses (7)

Used by (6)