All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.bcpg.Ed448PublicBCPGKey Maven / Gradle / Ivy

Go to download

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#Ed448}.
 * 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 EdDSAPublicBCPGKey} with
 * {@link PublicKeyAlgorithmTags#EDDSA_LEGACY}.
 *
 * @see 
 *     OpenPGP - Algorithm-Specific Part for Ed448 Keys
 */
public class Ed448PublicBCPGKey
    extends OctetArrayBCPGKey
{
    // 57 octets of the native public key
    public static final int LENGTH = 57;

    public Ed448PublicBCPGKey(BCPGInputStream in)
        throws IOException
    {
        super(LENGTH, in);
    }

    public Ed448PublicBCPGKey(byte[] key)
    {
        super(LENGTH, key);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy