Class PGPKeyConverter

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PGPKeyConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo​(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, byte[] key)  
      protected org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo​(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, int keySize, byte[] key)  
      protected PGPKdfParameters implGetKdfParameters​(org.bouncycastle.asn1.ASN1ObjectIdentifier curveID, PGPAlgorithmParameters algorithmParameters)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PGPKeyConverter

        protected PGPKeyConverter()
    • Method Detail

      • 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 java.io.IOException
        Throws:
        java.io.IOException
      • getPrivateKeyInfo

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