public final class Ed25519PrivateKeyParameters extends AsymmetricKeyParameter
| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_SIZE |
static int |
SIGNATURE_SIZE |
| Constructor and Description |
|---|
Ed25519PrivateKeyParameters(byte[] buf) |
Ed25519PrivateKeyParameters(byte[] buf,
int off) |
Ed25519PrivateKeyParameters(java.io.InputStream input) |
Ed25519PrivateKeyParameters(java.security.SecureRandom random) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(byte[] buf,
int off) |
Ed25519PublicKeyParameters |
generatePublicKey() |
byte[] |
getEncoded() |
void |
sign(int algorithm,
byte[] ctx,
byte[] msg,
int msgOff,
int msgLen,
byte[] sig,
int sigOff) |
void |
sign(int algorithm,
Ed25519PublicKeyParameters publicKey,
byte[] ctx,
byte[] msg,
int msgOff,
int msgLen,
byte[] sig,
int sigOff)
Deprecated.
use overload that doesn't take a public key
|
isPrivatepublic static final int KEY_SIZE
public static final int SIGNATURE_SIZE
public Ed25519PrivateKeyParameters(java.security.SecureRandom random)
public Ed25519PrivateKeyParameters(byte[] buf)
public Ed25519PrivateKeyParameters(byte[] buf,
int off)
public Ed25519PrivateKeyParameters(java.io.InputStream input)
throws java.io.IOException
java.io.IOExceptionpublic void encode(byte[] buf,
int off)
public byte[] getEncoded()
public Ed25519PublicKeyParameters generatePublicKey()
public void sign(int algorithm,
Ed25519PublicKeyParameters publicKey,
byte[] ctx,
byte[] msg,
int msgOff,
int msgLen,
byte[] sig,
int sigOff)
public void sign(int algorithm,
byte[] ctx,
byte[] msg,
int msgOff,
int msgLen,
byte[] sig,
int sigOff)