public abstract class Ed25519
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Ed25519.Algorithm |
Modifier and Type | Field and Description |
---|---|
static int |
PREHASH_SIZE |
static int |
PUBLIC_KEY_SIZE |
static int |
SECRET_KEY_SIZE |
static int |
SIGNATURE_SIZE |
Constructor and Description |
---|
Ed25519() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.bouncycastle.crypto.internal.Digest |
createDigest() |
org.bouncycastle.crypto.internal.Digest |
createPrehash() |
void |
generatePrivateKey(java.security.SecureRandom random,
byte[] k) |
void |
generatePublicKey(byte[] sk,
int skOff,
byte[] pk,
int pkOff) |
static void |
precompute() |
void |
sign(byte[] sk,
int skOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff) |
void |
sign(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff) |
void |
sign(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff) |
void |
sign(byte[] sk,
int skOff,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff) |
void |
signPrehash(byte[] sk,
int skOff,
byte[] ctx,
byte[] ph,
int phOff,
byte[] sig,
int sigOff) |
void |
signPrehash(byte[] sk,
int skOff,
byte[] ctx,
org.bouncycastle.crypto.internal.Digest ph,
byte[] sig,
int sigOff) |
void |
signPrehash(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] ph,
int phOff,
byte[] sig,
int sigOff) |
void |
signPrehash(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
org.bouncycastle.crypto.internal.Digest ph,
byte[] sig,
int sigOff) |
boolean |
verify(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen) |
boolean |
verify(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] m,
int mOff,
int mLen) |
boolean |
verifyPrehash(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] ph,
int phOff) |
boolean |
verifyPrehash(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
org.bouncycastle.crypto.internal.Digest ph) |
public static final int PREHASH_SIZE
public static final int PUBLIC_KEY_SIZE
public static final int SECRET_KEY_SIZE
public static final int SIGNATURE_SIZE
public org.bouncycastle.crypto.internal.Digest createPrehash()
public void generatePrivateKey(java.security.SecureRandom random, byte[] k)
public void generatePublicKey(byte[] sk, int skOff, byte[] pk, int pkOff)
public static void precompute()
public void sign(byte[] sk, int skOff, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)
public void sign(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)
public void sign(byte[] sk, int skOff, byte[] ctx, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)
public void sign(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] ctx, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)
public void signPrehash(byte[] sk, int skOff, byte[] ctx, byte[] ph, int phOff, byte[] sig, int sigOff)
public void signPrehash(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] ctx, byte[] ph, int phOff, byte[] sig, int sigOff)
public void signPrehash(byte[] sk, int skOff, byte[] ctx, org.bouncycastle.crypto.internal.Digest ph, byte[] sig, int sigOff)
public void signPrehash(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] ctx, org.bouncycastle.crypto.internal.Digest ph, byte[] sig, int sigOff)
public boolean verify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] m, int mOff, int mLen)
public boolean verify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte[] m, int mOff, int mLen)
public boolean verifyPrehash(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte[] ph, int phOff)
public boolean verifyPrehash(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, org.bouncycastle.crypto.internal.Digest ph)
protected abstract org.bouncycastle.crypto.internal.Digest createDigest()