Class PGPKeyConverter

java.lang.Object
org.bouncycastle.openpgp.operator.PGPKeyConverter
Direct Known Subclasses:
BcPGPKeyConverter, JcaPGPKeyConverter

public abstract class PGPKeyConverter extends Object
  • Constructor Details

    • PGPKeyConverter

      protected PGPKeyConverter()
  • Method Details

    • implGetKdfParameters

      protected PGPKdfParameters implGetKdfParameters(org.bouncycastle.asn1.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
    • getPrivateKeyInfo

      protected org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, int keySize, byte[] key) throws IOException
      Throws:
      IOException
    • getPrivateKeyInfo

      protected org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, byte[] key) throws IOException
      Throws:
      IOException