| Constructor and Description |
|---|
Ed25519Point(byte[] b) |
Ed25519Point(net.i2p.crypto.eddsa.math.GroupElement e) |
Ed25519Point(Point p) |
Ed25519Point(String str) |
| Modifier and Type | Method and Description |
|---|---|
Point |
add(Point other) |
static Point |
base() |
Point |
copy() |
byte[] |
data() |
static Point |
embed(byte[] data)
Embed data into a point.
|
static Point |
embed(byte[] data,
Random rand)
Embed data into a point.
|
static Point |
embed(byte[] data,
org.bouncycastle.crypto.Xof xof)
Embed data into a point.
|
boolean |
equals(Object other) |
Point |
getZero() |
boolean |
isZero() |
Point |
mul(Scalar s) |
Point |
negate() |
byte[] |
toBytes() |
net.i2p.crypto.eddsa.EdDSAPublicKey |
toEdDSAPub() |
com.google.protobuf.ByteString |
toProto() |
String |
toString() |
public Ed25519Point(byte[] b)
throws CothorityCryptoException
CothorityCryptoExceptionpublic Ed25519Point(String str) throws CothorityCryptoException
CothorityCryptoExceptionpublic Ed25519Point(Point p)
public Ed25519Point(net.i2p.crypto.eddsa.math.GroupElement e)
public boolean equals(Object other)
public String toString()
public net.i2p.crypto.eddsa.EdDSAPublicKey toEdDSAPub()
public byte[] data()
throws CothorityCryptoException
data in interface PointCothorityCryptoExceptionpublic static Point embed(byte[] data)
data - is the data to embed.public static Point embed(byte[] data, Random rand)
data - is the data to embed.rand - is the source of randomness to generate missing bytes in the pointpublic static Point embed(byte[] data, org.bouncycastle.crypto.Xof xof)
data - is the data to embedxof - is the extendable output function used to fill the missing bytes in the point.public static Point base()
Copyright © 2019. All rights reserved.