def pow_p14

bend-collections-laws-crypto@1.0.0.0 · src/crypto/ed25519/point.bend:27

import bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/point.bend as Point
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as F

27# 2^((p - 1) / 4), (p - 1) / 4 = 2^253 - 5: 250 one bits, then 0 1 1
28def pow_p14(+x: List<&2, U32>) -> List<&2, U32>:
29  F.pow_bits(x, [False{}, True{}, True{}], F.pow_ones(x, 249n, x))

Uses (5)

Used by (2)