- addGroupElements
Adds two group elements and returns the result in P3 representation. It uses
BigInteger arithmetic a
- doubleGroupElement
Doubles a group element and returns the result in P3 representation. It uses
BigInteger arithmetic a
- doubleScalarMultiplyGroupElements
Calculates f1 * g1 + f2 * g2.
- getField
Gets the underlying finite field with q=2^255 - 19 elements.
- getGroupOrder
Gets group order = 2^252 + 27742317777372353535851937790883648493 as BigInteger.
- getQ
Gets q = 2^255 - 19 as BigInteger.
- getRandomByteArray
- getRandomFieldElement
Gets a random field element where |t[i]|
- getRandomGroupElement
Gets a random group element in P3 representation, with precmp and dblPrecmp
populated.
- negateGroupElement
Negates a group element.
- reduceModGroupOrder
Reduces an integer in 2^8 bit representation modulo the group order and returns
the result.
- scalarMultiplyGroupElement
Scalar multiply the group element by the field element.