org.bouncycastle.bcpg.X25519PublicBCPGKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcpg-jdk14 Show documentation
Show all versions of bcpg-jdk14 Show documentation
The Bouncy Castle Java API for handling the OpenPGP protocol. This jar contains the OpenPGP API for JDK 1.4. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs.
The newest version!
package org.bouncycastle.bcpg;
import java.io.IOException;
/**
* Public key of type {@link 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 {@link ECDHPublicBCPGKey} with
* {@link PublicKeyAlgorithmTags#ECDH}.
*
* @see
* OpenPGP - Algorithm-Specific Part for X25519 Keys
*/
public class X25519PublicBCPGKey
extends OctetArrayBCPGKey
{
// 32 octets of the native public key
public static final int LENGTH = 32;
public X25519PublicBCPGKey(BCPGInputStream in)
throws IOException
{
super(LENGTH, in);
}
public X25519PublicBCPGKey(byte[] key)
{
super(LENGTH, key);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy