public class BigIntegerScalarOps extends Object implements ScalarOps
| Constructor and Description |
|---|
BigIntegerScalarOps(Field f,
BigInteger l)Create a BigIntegerScalarOps. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | multiplyAndAdd(byte[] a,
byte[] b,
byte[] c)Multiply a by b, add c, and reduce modulo the group order. |
byte[] | reduce(byte[] s)Reduce the given scalar modulo the group order. |
public BigIntegerScalarOps(Field f, BigInteger l)
f - the finite fieldl - the group order (subgroup size)public byte[] multiplyAndAdd(byte[] a,
byte[] b,
byte[] c)multiplyAndAdd in interface ScalarOpsa - The first scalar.b - The second scalar.c - The third scalar.