org.bouncycastle.bcpg.Ed448SecretBCPGKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcpg-fips Show documentation
Show all versions of bcpg-fips Show documentation
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.
package org.bouncycastle.bcpg;
import java.io.IOException;
/**
* Secret key of type {@link PublicKeyAlgorithmTags#Ed448}.
* 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 EdDSAPublicBCPGKey} with
* {@link PublicKeyAlgorithmTags#EDDSA_LEGACY}.
*
* @see
* Crypto-Refresh - Algorithm-Specific Part for Ed448 Keys
*/
public class Ed448SecretBCPGKey
extends OctetArrayBCPGKey
{
// 57 octets of the native secret key
public static final int LENGTH = 57;
public Ed448SecretBCPGKey(BCPGInputStream in)
throws IOException
{
super(LENGTH, in);
}
public Ed448SecretBCPGKey(byte[] key)
{
super(LENGTH, key);
}
}