scMul

fnubyte[32] scMul(scope const ref ubyte[32] a, scope const ref ubyte[32] b) nothrow @trusted @nogc

Multiplies two scalars modulo the group order.

Schoolbook byte-limb multiplication into a 512-bit intermediate, followed by scReduce. Inputs are full 32-byte values.

Parameters

aFirst factor.
bSecond factor.

Returns

a * b mod L as 32 little-endian bytes.