public class J2meCurve25519Provider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIVATE_KEY_LEN |
| Modifier | Constructor and Description |
|---|---|
protected |
J2meCurve25519Provider() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateAgreement(byte[] ourPrivate,
byte[] theirPublic) |
byte[] |
calculateSignature(byte[] random,
byte[] privateKey,
byte[] message) |
byte[] |
calculateVrfSignature(byte[] random,
byte[] privateKey,
byte[] message) |
byte[] |
generatePrivateKey() |
byte[] |
generatePrivateKey(byte[] random) |
byte[] |
generatePublicKey(byte[] privateKey) |
byte[] |
getRandom(int length) |
boolean |
isNative() |
void |
setRandomProvider(SecureRandomProvider secureRandomProvider) |
boolean |
verifySignature(byte[] publicKey,
byte[] message,
byte[] signature) |
byte[] |
verifyVrfSignature(byte[] publicKey,
byte[] message,
byte[] signature) |
public static final int PRIVATE_KEY_LEN
public boolean isNative()
public void setRandomProvider(SecureRandomProvider secureRandomProvider)
public byte[] calculateAgreement(byte[] ourPrivate,
byte[] theirPublic)
public byte[] generatePublicKey(byte[] privateKey)
public byte[] generatePrivateKey()
public byte[] generatePrivateKey(byte[] random)
public byte[] calculateSignature(byte[] random,
byte[] privateKey,
byte[] message)
public boolean verifySignature(byte[] publicKey,
byte[] message,
byte[] signature)
public byte[] calculateVrfSignature(byte[] random,
byte[] privateKey,
byte[] message)
public byte[] verifyVrfSignature(byte[] publicKey,
byte[] message,
byte[] signature)
throws VrfSignatureVerificationFailedException
public byte[] getRandom(int length)