std/crypto/{25519,pcurves}: make the scalar field order public (#11955)

For 25519, it's very likely that applications would ever need the
serialized representation. Expose the value as an integer as in
other curves. Rename the internal representation from `field_size`
to `field_order` for consistency.

Also fix a common typo in `scalar.sub()`.
41533fa6a1Frank Denis committed on 6/29/2022, 5:44:43 AM· committed by GitHubparentb2e4dda
3 files changedLine totals unavailable