Skip to content

Cannot generate BcPGPKeyPair for X448 #1584

Description

@hbs

Attempting to do the following fails with a ClassCastException when BcPGKeyConverter wrongly assumes its input parameter not being ECPrivateKeyParameters means they are X25519.

X448KeyPairGenerator xkpg = new X448KeyPairGenerator();
xkpg.init(new KeyGenerationParameters(new SecureRandom(), 0));
BcPGPKeyPair kp = new BcPGPKeyPair(PublicKeyAlgorithmTags.ECDH, xkpg.generateKeyPair(), new Date());

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions