Bouncy Castle Cryptography Library 1.79

org.bouncycastle.openpgp.operator
Class PGPKeyConverter

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

public abstract class PGPKeyConverter
extends java.lang.Object


Constructor Summary
protected PGPKeyConverter()
           
 
Method Summary
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)
          Reference: RFC9580 - OpenPGP
 
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

getPrivateKeyInfo

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

Bouncy Castle Cryptography Library 1.79