Class PGPKeyConverter

    • Constructor Detail

      • PGPKeyConverter

        protected PGPKeyConverter()
    • Method Detail

      • implGetKdfParameters

        protected PGPKdfParameters implGetKdfParameters​(org.bouncycastle.asn1.ASN1ObjectIdentifier curveID,
                                                        PGPAlgorithmParameters algorithmParameters)
        Reference: RFC Draft-ietf-openpgp-crypto-refresh-13

        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
      • 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