public abstract class X25519
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
X25519.Friend |
Modifier and Type | Field and Description |
---|---|
static int |
POINT_SIZE |
static int |
SCALAR_SIZE |
Constructor and Description |
---|
X25519() |
Modifier and Type | Method and Description |
---|---|
static boolean |
calculateAgreement(byte[] k,
int kOff,
byte[] u,
int uOff,
byte[] r,
int rOff) |
static void |
generatePrivateKey(java.security.SecureRandom random,
byte[] k) |
static void |
generatePublicKey(byte[] k,
int kOff,
byte[] r,
int rOff) |
static void |
precompute() |
static void |
scalarMult(byte[] k,
int kOff,
byte[] u,
int uOff,
byte[] r,
int rOff) |
static void |
scalarMultBase(byte[] k,
int kOff,
byte[] r,
int rOff) |
public static final int POINT_SIZE
public static final int SCALAR_SIZE
public static boolean calculateAgreement(byte[] k, int kOff, byte[] u, int uOff, byte[] r, int rOff)
public static void generatePrivateKey(java.security.SecureRandom random, byte[] k)
public static void generatePublicKey(byte[] k, int kOff, byte[] r, int rOff)
public static void precompute()
public static void scalarMult(byte[] k, int kOff, byte[] u, int uOff, byte[] r, int rOff)
public static void scalarMultBase(byte[] k, int kOff, byte[] r, int rOff)