public abstract class PGPKeyConverter
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PGPKeyConverter() |
Modifier and Type | Method and 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)
Reference:
RFC9580 - OpenPGP
This class provides information about the recommended algorithms to use
depending on the key version and curve type in OpenPGP keys.
|
protected PGPKdfParameters implGetKdfParameters(org.bouncycastle.asn1.ASN1ObjectIdentifier curveID, PGPAlgorithmParameters algorithmParameters)
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:
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 |
protected org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, int keySize, byte[] key) throws java.io.IOException
java.io.IOException
protected org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKeyInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, byte[] key) throws java.io.IOException
java.io.IOException