public final class X25519PrivateKeyParameters extends AsymmetricKeyParameter
| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_SIZE |
static int |
SECRET_SIZE |
| Constructor and Description |
|---|
X25519PrivateKeyParameters(byte[] buf) |
X25519PrivateKeyParameters(byte[] buf,
int off) |
X25519PrivateKeyParameters(java.io.InputStream input) |
X25519PrivateKeyParameters(java.security.SecureRandom random) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(byte[] buf,
int off) |
X25519PublicKeyParameters |
generatePublicKey() |
void |
generateSecret(X25519PublicKeyParameters publicKey,
byte[] buf,
int off) |
byte[] |
getEncoded() |
isPrivatepublic static final int KEY_SIZE
public static final int SECRET_SIZE
public X25519PrivateKeyParameters(java.security.SecureRandom random)
public X25519PrivateKeyParameters(byte[] buf)
public X25519PrivateKeyParameters(byte[] buf,
int off)
public X25519PrivateKeyParameters(java.io.InputStream input)
throws java.io.IOException
java.io.IOExceptionpublic void encode(byte[] buf,
int off)
public byte[] getEncoded()
public X25519PublicKeyParameters generatePublicKey()
public void generateSecret(X25519PublicKeyParameters publicKey, byte[] buf, int off)