Constructor and Description |
---|
Ed25519ScalarOps() |
Modifier and Type | Method and Description |
---|---|
byte[] |
multiplyAndAdd(byte[] a,
byte[] b,
byte[] c)
Input:
a[0]+256*a[1]+...+256^31*a[31] = a b[0]+256*b[1]+...+256^31*b[31] = b c[0]+256*c[1]+...+256^31*c[31] = c Output: result[0]+256*result[1]+...+256^31*result[31] = (ab+c) mod l where l = 2^252 + 27742317777372353535851937790883648493. |
byte[] |
reduce(byte[] s)
Input:
s[0]+256*s[1]+...+256^63*s[63] = s Output: s[0]+256*s[1]+...+256^31*s[31] = s mod l where l = 2^252 + 27742317777372353535851937790883648493. |
public byte[] reduce(byte[] s)
public byte[] multiplyAndAdd(byte[] a, byte[] b, byte[] c)
multiplyAndAdd
in interface ScalarOps