Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PGP: Remove support for legacy X448, legacy Ed448? #1677

Closed
vanitasvitae opened this issue May 23, 2024 · 2 comments
Closed

PGP: Remove support for legacy X448, legacy Ed448? #1677

vanitasvitae opened this issue May 23, 2024 · 2 comments
Labels
question Further information is requested

Comments

@vanitasvitae
Copy link
Contributor

I'm currently adding more tests, including for Legacy X448 encryption and I wonder, if it's really worth supporting non-standard legacy X488 (with PublicKeyAlgorithmTags.ECDH) and legacy Ed448 (with PublicKeyAlgorithmTags.EDDSA_LEGACY).

Originally I thought support for these would be desirable, since the PGPKeyConverter classes had partial support already, but the more I think about it I guess supporting those key types would lead to people generating them, causing interop issues with other implementations.
What do you think?

Removing support for non-standard keys would involve reverting some changes from #1663 (simplifying EDDSA_LEGACY branches to always assume Ed25519, removing X448 from the ECDH branches), and removing the LegacyX448KeyPairTest, LegacyEd448KeyPairTest classes.

Originally posted by @vanitasvitae in #1675 (comment)

@vanitasvitae
Copy link
Contributor Author

I just noticed, that there appear to be legacy Ed448 keys already used in the codebase, e.g. here.
That makes the discussion more interesting :D

@vanitasvitae
Copy link
Contributor Author

vanitasvitae commented May 23, 2024

Turns out, LibrePGP defines use of Ed448 with LEGACY_EDDSA and X448 with ECDH (see here), so removing support is not really an option if we want to stay compatible to LibrePGP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants