public class X25519SecretBCPGKey extends OctetArrayBCPGKey
PublicKeyAlgorithmTags.X25519.
This type was introduced with RFC9580 and can be used with v4, v6 keys.
Note however, that legacy implementations might not understand this key type yet.
For a key type compatible with legacy v4 implementations, see ECSecretBCPGKey with
PublicKeyAlgorithmTags.ECDH.
Note: Contrary to ECSecretBCPGKey using PublicKeyAlgorithmTags.ECDH, which uses big-endian
MPI encoding to encode the secret key material, X25519SecretBCPGKey uses native little-endian encoding.| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
| Constructor and Description |
|---|
X25519SecretBCPGKey(BCPGInputStream in) |
X25519SecretBCPGKey(byte[] key) |
encode, getEncoded, getFormat, getKeypublic static final int LENGTH
public X25519SecretBCPGKey(BCPGInputStream in) throws java.io.IOException
java.io.IOExceptionpublic X25519SecretBCPGKey(byte[] key)