public final class Curve25519 extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
eval(byte[] result,
int offset,
byte[] privateKey,
byte[] publicKey)
Evaluates the Curve25519 curve.
|
public static void eval(byte[] result,
int offset,
byte[] privateKey,
byte[] publicKey)
result - Buffer to place the result of the evaluation into.offset - Offset into the result buffer.privateKey - The private key to use in the evaluation.publicKey - The public key to use in the evaluation, or null
MUST have MSB high bit cleared, i.e. publicKey[31] & 0x80 == 0
if the base point of the curve should be used.