Top Constructors Methods
org.bouncycastle.openpgp.operator

public abstract Class PGPKeyConverter

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.openpgp.operator.bc.BcPGPKeyConverter, org.bouncycastle.openpgp.operator.jcajce.JcaPGPKeyConverter
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1ObjectIdentifier, .DEROctetString, org.bouncycastle.asn1.cryptlib.CryptlibObjectIdentifiers, org.bouncycastle.asn1.edec.EdECObjectIdentifiers, org.bouncycastle.asn1.pkcs.PrivateKeyInfo, org.bouncycastle.asn1.sec.SECObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.bcpg.HashAlgorithmTags, .SymmetricKeyAlgorithmTags, org.bouncycastle.openpgp.PGPAlgorithmParameters, .PGPKdfParameters, org.bouncycastle.util.BigIntegers

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected PrivateKeyInfo
getPrivateKeyInfo(ASN1ObjectIdentifier algorithm, int keySize, byte[] key)

protected PrivateKeyInfo
getPrivateKeyInfo(ASN1ObjectIdentifier algorithm, byte[] key)

protected PGPKdfParameters
implGetKdfParameters(ASN1ObjectIdentifier curveID, PGPAlgorithmParameters algorithmParameters)

Reference: RFC9580 - OpenPGP

This class provides information about the recommended algorithms to use depending on the key version and curve type in OpenPGP keys.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PGPKeyConverterback to summary
protected PGPKeyConverter()

Method Detail

getPrivateKeyInfoback to summary
protected PrivateKeyInfo getPrivateKeyInfo(ASN1ObjectIdentifier algorithm, int keySize, byte[] key) throws IOException
getPrivateKeyInfoback to summary
protected PrivateKeyInfo getPrivateKeyInfo(ASN1ObjectIdentifier algorithm, byte[] key) throws IOException
implGetKdfParametersback to summary
protected PGPKdfParameters implGetKdfParameters(ASN1ObjectIdentifier curveID, PGPAlgorithmParameters algorithmParameters)

Reference: RFC9580 - OpenPGP

This class provides information about the recommended algorithms to use depending on the key version and curve type in OpenPGP keys.

For OpenPGP keys using the specified curves, the following algorithms are recommended:

Recommended Algorithms for OpenPGP Keys
Curve Hash Algorithm Symmetric Algorithm
NIST P-256 SHA2-256 AES-128
NIST P-384 SHA2-384 AES-192
NIST P-521 SHA2-512 AES-256
brainpoolP256r1 SHA2-256 AES-128
brainpoolP384r1 SHA2-384 AES-192
brainpoolP512r1 SHA2-512 AES-256
Curve25519Legacy SHA2-256 AES-128
Curve448Legacy (not in RFC Draft) SHA2-512 AES-256