/// Compute `(a^2) / R` (mod l) in Montgomery form, where R is the Montgomery modulus 2^260 public UnpackedScalar montgomery_square() { return(UnpackedScalar.montgomery_reduce(UnpackedScalar.square_internal(value.Span))); }
/// Compute `a^2` (mod l) // XXX we don't expose square() via the Scalar API public UnpackedScalar square() { var aa = UnpackedScalar.montgomery_reduce(UnpackedScalar.square_internal(value.Span)); return(UnpackedScalar.montgomery_reduce(UnpackedScalar.mul_internal(aa.value.Span, Constant.RR.value.Span))); }