public interface ScalarOps extends Serializable
| Modifier and Type | Method and Description |
|---|---|
byte[] | multiplyAndAdd(byte[] a,
byte[] b,
byte[] c)$r = (a * b + c) \bmod l$ |
byte[] | reduce(byte[] s)Reduce the given scalar mod $l$. |
byte[] multiplyAndAdd(byte[] a,
byte[] b,
byte[] c)a - a scalarb - a scalarc - a scalarbyte[] reduce(byte[] s)
From the Ed25519 paper:
Here we interpret $2b$-bit strings in little-endian form as integers in
$\{0, 1,..., 2^{(2b)}-1\}$.
s - the scalar to reduce