Functions
inline fn clamp(s: *CompressedScalar) void
Perform the X25519 “clamping” operation. The scalar is then guaranteed to be a …
Perform the X25519 “clamping” operation. The scalar is then guaranteed to be a multiple of the cofactor.
fn mulAdd(a: CompressedScalar, b: CompressedScalar, c: CompressedScalar) CompressedScalar
Return a*b+c (mod L)
fn rejectNonCanonical(s: CompressedScalar) NonCanonicalError!void
Reject a scalar whose encoding is not canonical.