| Package | Description |
|---|---|
| ch.epfl.dedis.lib.crypto.bn256 |
| Modifier and Type | Method and Description |
|---|---|
BN.G2 |
BN.G2.add(BN.G2 a,
BN.G2 b)
Perform a point addition.
|
BN.G2 |
BN.PairG2.getPoint() |
BN.G2 |
BN.G2.neg(BN.G2 a)
Perform a point negation.
|
BN.G2 |
BN.G2.scalarBaseMul(BigInteger k)
Perform a scalar multiplication with the generator point.
|
BN.G2 |
BN.G2.scalarMul(BN.G2 a,
BigInteger k)
Perform a scalar multiplication.
|
BN.G2 |
BN.G2.setInfinity()
Set the point to the infinity (zero) point.
|
BN.G2 |
BN.G2.unmarshal(byte[] m)
Turns the byte representation to the point.
|
| Modifier and Type | Method and Description |
|---|---|
BN.G2 |
BN.G2.add(BN.G2 a,
BN.G2 b)
Perform a point addition.
|
BN.G2 |
BN.G2.neg(BN.G2 a)
Perform a point negation.
|
static BN.GT |
BN.pair(BN.G1 g1,
BN.G2 g2)
Perform the pairing operation.
|
BN.G2 |
BN.G2.scalarMul(BN.G2 a,
BigInteger k)
Perform a scalar multiplication.
|
| Constructor and Description |
|---|
G2(BN.G2 p)
Copy construct for G2.
|
PairG2(BigInteger k,
BN.G2 p) |
Copyright © 2019. All rights reserved.