8000 High-Level API #0: Preparations for high-level OpenPGP Key Generator API by vanitasvitae · Pull Request #1926 · bcgit/bc-java · GitHub
[go: up one dir, main page]

Skip to content

High-Level API #0: Preparations for high-level OpenPGP Key Generator API #1926

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

Closed
wants to merge 12 commits into from

Conversation

vanitasvitae
Copy link
Contributor

This is part 1 of the split-up patch adding a high-level key generator API.
This one is focussed on changes required in /openpgp/, /openpgp/operator/ and /bcpg/.

It also contains the fix from #1882 (the test will be included in the second PR).

@vanitasvitae vanitasvitae changed the title Preparations for high-level OpenPGP Key Generator API High-Level API #0: Preparations for high-level OpenPGP Key Generator API Dec 3, 2024
@vanitasvitae
Copy link
Contributor Author

Some context for 32fc48b :
The Stateless OpenPGP Protocol allows implementations to emit the plain session key that was used to encrypt a message during the encryption process1. This feature can be used by implementations to retain access to the plaintext of ab encrypted message without the need to have access to decryption secret key material2.

The best way I found to add support for session-key extraction in a backwards-compatible manner was by using a callback. Let me know what you think of this feature.

In 15ae18e I also exposed the encrypted data packet object. This is needed in order to emit, which encryption method (SEIPDv1, SEIPDv2, legacy SED, LibrePGP OED) was used to encrypt the message with.

hubot pushed a commit that referenced this pull request Dec 12, 2024
* Rename masterKey -> primaryKey
* Add generics to list structures
* sanitize primary and subkeys
* properly instantiate signature generators by passing key version
This class contains methods for checking properties of public key algorithms
Both the BcAEADSecretKeyEncryptorBuilder and JcaAEADSecretKeyEncryptorBuilder did not share
a common super type. This patch added AEADSecretKeyEncryptorBuilder for this purpose.
@ligefeiBouncycastle
Copy link
Collaborator

There are some classes that are still under review and will be merged into the main branch later.

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.

2 participants
0