| Modifier and Type | Field and Description |
|---|---|
static int |
ELEM_SIZE |
static int |
MARSHAL_SIZE |
| Constructor and Description |
|---|
GT()
Construct a new GT object, we make no guarantee on its value, please set it later.
|
GT(ch.epfl.dedis.lib.crypto.bn256.GFp12 p)
Construct a new GT object from a GFp12 object.
|
| Modifier and Type | Method and Description |
|---|---|
BN.GT |
add(BN.GT a,
BN.GT b)
Perform an addition.
|
boolean |
equals(Object obj) |
byte[] |
marshal()
Turns the element into its byte representation.
|
BN.GT |
neg(BN.GT a)
Perform a negation.
|
BN.GT |
scalarMul(BN.GT a,
BigInteger k)
Perform a scalar multiplication.
|
String |
toString() |
BN.GT |
unmarshal(byte[] m)
Turns the byte representation to the element.
|
public static final int ELEM_SIZE
public static final int MARSHAL_SIZE
public GT()
public GT(ch.epfl.dedis.lib.crypto.bn256.GFp12 p)
p - is the GFp12 object.public BN.GT scalarMul(BN.GT a, BigInteger k)
a - is the point.k - is the scalar.public BN.GT add(BN.GT a, BN.GT b)
a - is an element.b - is an element.public BN.GT neg(BN.GT a)
a - is the element for negation.public byte[] marshal()
public BN.GT unmarshal(byte[] m)
m - the input bytes.Copyright © 2019. All rights reserved.