def csub

bend-collections@1.0.0.0 · src/crypto/ed25519/scalar.bend:29

import bend-collections@1.0.0.0/src/crypto/ed25519/scalar.bend as Scalar
import Base
import bend-collections@1.0.0.0/src/crypto/curve25519/field.bend as F

29# x - L when x >= L, else x (x tight, x < 2 L)
30def csub(+x: List<&2, U32>) -> List<&2, U32>:
31  F.csub_fin(F.carry(F.addl(x, comp_l()), 0), x)

Uses (6)

Used by (1)