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

Introduce KeyIdentifier class #1752

Closed
wants to merge 7 commits into from

Conversation

vanitasvitae
Copy link
Contributor

@vanitasvitae vanitasvitae commented Jul 20, 2024

For historic reasons, many places in the OpenPGP API and specification rely on 64-bit key-ids.
However, later versions of the standard migrate to use fingerprints (20 or 32 bytes) to reduce the risk of attacks based on the birthday paradox (key-id collisions).

In this PR I introduce the KeyIdentifier class, which can be created from both a key-id or a fingerprint, and which shall be used as a common stand-in for either key-id or fingerprints.
This enables a smooth transition from using key-ids to using fingerprints.

TODO:

  • Implement tests
  • integrate KeyIdentifier into existing API to transition away from pure key-ID uses

@vanitasvitae vanitasvitae marked this pull request as draft July 20, 2024 13:23
vanitasvitae added a commit to pgpainless/bc-java that referenced this pull request Aug 7, 2024
TODO: Revert once bcgit#1752 is merged
vanitasvitae added a commit to pgpainless/bc-java that referenced this pull request Aug 8, 2024
TODO: Revert once bcgit#1752 is merged
@vanitasvitae vanitasvitae marked this pull request as ready for review August 8, 2024 10:50
vanitasvitae added a commit to pgpainless/bc-java that referenced this pull request Aug 10, 2024
TODO: Revert once bcgit#1752 is merged
vanitasvitae added a commit to pgpainless/bc-java that referenced this pull request Sep 10, 2024
TODO: Revert once bcgit#1752 is merged
vanitasvitae added a commit to pgpainless/bc-java that referenced this pull request Sep 10, 2024
TODO: Revert once bcgit#1752 is merged
hubot pushed a commit that referenced this pull request Sep 11, 2024
@vanitasvitae
Copy link
Contributor Author

In main as a7930a2

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

Successfully merging this pull request may close these issues.

1 participant