public abstract class DSTU4145PointEncoder extends Object
Constructor and Description |
---|
DSTU4145PointEncoder() |
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.math.ec.ECPoint |
decodePoint(org.bouncycastle.math.ec.ECCurve curve,
byte[] bytes) |
static byte[] |
encodePoint(org.bouncycastle.math.ec.ECPoint Q) |
private static org.bouncycastle.math.ec.ECFieldElement |
solveQuadraticEquation(org.bouncycastle.math.ec.ECCurve curve,
org.bouncycastle.math.ec.ECFieldElement beta)
Solves a quadratic equation
z2 + z = beta (X9.62
D.1.6) The other solution is z + 1 . |
private static org.bouncycastle.math.ec.ECFieldElement |
trace(org.bouncycastle.math.ec.ECFieldElement fe) |
public DSTU4145PointEncoder()
private static org.bouncycastle.math.ec.ECFieldElement trace(org.bouncycastle.math.ec.ECFieldElement fe)
private static org.bouncycastle.math.ec.ECFieldElement solveQuadraticEquation(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECFieldElement beta)
z2 + z = beta
(X9.62
D.1.6) The other solution is z + 1
.beta
- The value to solve the quadratic equation for.z2 + z = beta
or
null
if no solution exists.public static byte[] encodePoint(org.bouncycastle.math.ec.ECPoint Q)
public static org.bouncycastle.math.ec.ECPoint decodePoint(org.bouncycastle.math.ec.ECCurve curve, byte[] bytes)