def pow_p58

bend-collections-laws-crypto@1.0.0.0 · src/crypto/curve25519/field.bend:250

import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as Field
import Base

250# x^((p - 5) / 8) = x^(2^252 - 3): 250 one bits, then 0 1
251def pow_p58(+x: List<&2, U32>) -> List<&2, U32>:
252  pow_bits(x, [False{}, True{}], pow_ones(x, 249n, x))

Uses (5)

Used by (10)