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

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

Go to download

The Bouncy Castle Java APIs for the OpenPGP Protocol. The APIs are designed primarily to be used in conjunction with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.

There is a newer version: 2.0.9
Show newest version
package org.bouncycastle.bcpg;

import java.io.IOException;

/**
 * Public key of type {@link PublicKeyAlgorithmTags#X448}.
 * This type was introduced with Crypto-Refresh 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 
 *     Crypto-Refresh - Algorithm-Specific Part for X448 Keys
 */
public class X448PublicBCPGKey
        extends OctetArrayBCPGKey
{
    // 56 octets of the native public key
    public static final int LENGTH = 56;

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy